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.
- package/dist/lilact.development.js +4 -4
- package/dist/lilact.development.js.map +2 -2
- package/dist/lilact.development.min.js +2 -2
- package/dist/lilact.development.min.js.map +2 -2
- package/dist/lilact.production.min.js +2 -2
- package/docs/functions/run.lazy.html +1 -1
- package/docs/functions/run.require.html +1 -1
- package/docs/functions/run.run.html +3 -4
- package/docs/functions/run.runScripts.html +1 -1
- package/docs/static/lilact.development.js +4 -4
- package/docs/static/lilact.development.js.map +2 -2
- package/docs/static/lilact.development.min.js +2 -2
- package/docs/static/lilact.development.min.js.map +2 -2
- package/docs/static/lilact.production.min.js +2 -2
- package/examples/lilact.development.js +4 -4
- package/examples/lilact.development.js.map +2 -2
- package/examples/lilact.development.min.js +2 -2
- package/examples/lilact.development.min.js.map +2 -2
- package/examples/lilact.production.min.js +2 -2
- package/package.json +1 -1
- package/src/run.jsx +5 -6
|
@@ -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}`,
|
|
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
|
-
|
|
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);
|