lilact 0.26.11 → 0.26.13
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.
- package/dist/lilact.development.js +5 -5
- package/dist/lilact.development.js.map +2 -2
- package/dist/lilact.development.min.js +7 -7
- package/dist/lilact.development.min.js.map +3 -3
- package/dist/lilact.production.min.js +7 -7
- package/docs/functions/run.lazy.html +1 -1
- package/docs/functions/run.require.html +1 -1
- package/docs/functions/run.run.html +1 -1
- package/docs/functions/run.runScripts.html +1 -1
- package/docs/static/lilact.development.js +5 -5
- package/docs/static/lilact.development.js.map +2 -2
- package/docs/static/lilact.development.min.js +7 -7
- package/docs/static/lilact.development.min.js.map +3 -3
- package/docs/static/lilact.production.min.js +7 -7
- package/examples/lilact.development.js +5 -5
- package/examples/lilact.development.js.map +2 -2
- package/examples/lilact.development.min.js +7 -7
- package/examples/lilact.development.min.js.map +3 -3
- package/examples/lilact.production.min.js +7 -7
- package/package.json +1 -1
- package/src/jsx.js +1 -1
- package/src/run.jsx +7 -5
|
@@ -3656,7 +3656,7 @@ 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 (
|
|
3659
|
+
if (!isEmpty(module.exports)) return module.exports;
|
|
3660
3660
|
return res;
|
|
3661
3661
|
} catch (e) {
|
|
3662
3662
|
e = lilact_default.traceError(e);
|
|
@@ -3701,7 +3701,7 @@ function require2(path2) {
|
|
|
3701
3701
|
injectGlobal(res2);
|
|
3702
3702
|
return;
|
|
3703
3703
|
}
|
|
3704
|
-
res2 = run(res2, path2, false);
|
|
3704
|
+
res2 = run(res2, path2, { isInline: false });
|
|
3705
3705
|
return (_a2 = res2 == null ? void 0 : res2.default) != null ? _a2 : res2;
|
|
3706
3706
|
}).catch((err) => {
|
|
3707
3707
|
throw err;
|
|
@@ -3713,17 +3713,17 @@ function require2(path2) {
|
|
|
3713
3713
|
injectGlobal(p);
|
|
3714
3714
|
return;
|
|
3715
3715
|
}
|
|
3716
|
-
return run(p, path2, false);
|
|
3716
|
+
return run(p, path2, { isInline: false });
|
|
3717
3717
|
} else {
|
|
3718
3718
|
const request = new XMLHttpRequest();
|
|
3719
|
-
request.open("GET", path2,
|
|
3719
|
+
request.open("GET", path2, false);
|
|
3720
3720
|
request.send(null);
|
|
3721
3721
|
if (request.status === 200) {
|
|
3722
3722
|
if (path2.endsWith(".css")) {
|
|
3723
3723
|
injectGlobal(res);
|
|
3724
3724
|
return;
|
|
3725
3725
|
}
|
|
3726
|
-
return run(request.responseText, path2, false);
|
|
3726
|
+
return run(request.responseText, path2, { isInline: false });
|
|
3727
3727
|
}
|
|
3728
3728
|
}
|
|
3729
3729
|
}
|