lilact 0.26.11 → 0.26.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3656,7 +3656,8 @@ function run(jsx, path = `InlineJSX-${++lilact_default.eval_num}`, { isInline, i
3656
3656
  globalThis.createComponent = lilact_default.createComponent;
3657
3657
  globalThis.Fragment = lilact_default.Fragment;
3658
3658
  const res = eval(processed);
3659
- if (isModule && module.exports) return module.exports;
3659
+ console.log(path, isModule, module.exports);
3660
+ if (!isEmpty(module.exports)) return module.exports;
3660
3661
  return res;
3661
3662
  } catch (e) {
3662
3663
  e = lilact_default.traceError(e);
@@ -3701,7 +3702,7 @@ function require2(path2) {
3701
3702
  injectGlobal(res2);
3702
3703
  return;
3703
3704
  }
3704
- res2 = run(res2, path2, false);
3705
+ res2 = run(res2, path2, { isInline: false });
3705
3706
  return (_a2 = res2 == null ? void 0 : res2.default) != null ? _a2 : res2;
3706
3707
  }).catch((err) => {
3707
3708
  throw err;
@@ -3713,17 +3714,17 @@ function require2(path2) {
3713
3714
  injectGlobal(p);
3714
3715
  return;
3715
3716
  }
3716
- return run(p, path2, false);
3717
+ return run(p, path2, { isInline: false });
3717
3718
  } else {
3718
3719
  const request = new XMLHttpRequest();
3719
- request.open("GET", path2, { isInline: false });
3720
+ request.open("GET", path2, false);
3720
3721
  request.send(null);
3721
3722
  if (request.status === 200) {
3722
3723
  if (path2.endsWith(".css")) {
3723
3724
  injectGlobal(res);
3724
3725
  return;
3725
3726
  }
3726
- return run(request.responseText, path2, false);
3727
+ return run(request.responseText, path2, { isInline: false });
3727
3728
  }
3728
3729
  }
3729
3730
  }