lilact 0.26.2 → 0.26.3

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.
@@ -3597,11 +3597,11 @@ function joinPaths(basePath, relativePath) {
3597
3597
  return (isAbs ? "/" : "") + stack.join("/");
3598
3598
  }
3599
3599
  var required_scripts = {};
3600
- function run(jsx, path = `InlineJSX-${++lilact_default.eval_num}`, is_inline = true) {
3600
+ function run(jsx, path = `InlineJSX-${++lilact_default.eval_num}`, { isInline, isModule } = { isInline: true, isModule: true }) {
3601
3601
  const mappings = [];
3602
3602
  const module = {
3603
3603
  mappings,
3604
- is_inline,
3604
+ isInline,
3605
3605
  path,
3606
3606
  code: jsx,
3607
3607
  exports: {}
@@ -3635,7 +3635,7 @@ function run(jsx, path = `InlineJSX-${++lilact_default.eval_num}`, is_inline = t
3635
3635
  globalThis.createComponent = lilact_default.createComponent;
3636
3636
  globalThis.Fragment = lilact_default.Fragment;
3637
3637
  const res = eval(processed);
3638
- if (module.exports) return module.exports;
3638
+ if (isModule && module.exports) return module.exports;
3639
3639
  return res;
3640
3640
  } catch (e) {
3641
3641
  e = lilact_default.traceError(e);
@@ -3676,7 +3676,7 @@ function require2(path2) {
3676
3676
  });
3677
3677
  } else {
3678
3678
  const request = new XMLHttpRequest();
3679
- request.open("GET", path2, false);
3679
+ request.open("GET", path2, { isInline: false });
3680
3680
  request.send(null);
3681
3681
  if (request.status === 200) {
3682
3682
  return run(request.responseText, path2, false);