lilact 0.26.8 → 0.26.9
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 +7 -2
- package/dist/lilact.development.js.map +2 -2
- package/dist/lilact.development.min.js +6 -6
- package/dist/lilact.development.min.js.map +2 -2
- package/dist/lilact.production.min.js +6 -6
- package/docs/functions/run.lazy.html +1 -1
- package/docs/functions/run.require.html +1 -1
- package/docs/functions/run.runScripts.html +1 -1
- package/docs/static/lilact.development.js +7 -2
- package/docs/static/lilact.development.js.map +2 -2
- package/docs/static/lilact.development.min.js +6 -6
- package/docs/static/lilact.development.min.js.map +2 -2
- package/docs/static/lilact.production.min.js +6 -6
- package/examples/lilact.development.js +7 -2
- package/examples/lilact.development.js.map +2 -2
- package/examples/lilact.development.min.js +6 -6
- package/examples/lilact.development.min.js.map +2 -2
- package/examples/lilact.production.min.js +6 -6
- package/package.json +1 -1
- package/src/jsx.js +1 -1
- package/src/run.jsx +7 -1
|
@@ -3633,9 +3633,9 @@ function run(jsx, path = `InlineJSX-${++lilact_default.eval_num}`, { isInline, i
|
|
|
3633
3633
|
mappings,
|
|
3634
3634
|
factory: "createComponent",
|
|
3635
3635
|
appendSourcemap: false,
|
|
3636
|
-
blocks_info: lilact_default.blocks_info,
|
|
3637
3636
|
injectTraceLabels: true,
|
|
3638
|
-
produceCJS: true
|
|
3637
|
+
produceCJS: true,
|
|
3638
|
+
blocks_info: lilact_default.blocks_info
|
|
3639
3639
|
}
|
|
3640
3640
|
);
|
|
3641
3641
|
} catch (e) {
|
|
@@ -3675,6 +3675,7 @@ function require2(path2) {
|
|
|
3675
3675
|
if (el) {
|
|
3676
3676
|
return run(el.innerText, path2);
|
|
3677
3677
|
}
|
|
3678
|
+
throw new Error(`Required element not found (${path2})`);
|
|
3678
3679
|
} else {
|
|
3679
3680
|
if (requirer && requirer.path) {
|
|
3680
3681
|
path2 = joinPaths(requirer.path, path2);
|
|
@@ -3704,6 +3705,10 @@ function require2(path2) {
|
|
|
3704
3705
|
} else {
|
|
3705
3706
|
const p = (_j = (_i = lilact_default).resolver) == null ? void 0 : _j.call(_i, path2);
|
|
3706
3707
|
if (p) {
|
|
3708
|
+
if (path2.endsWith(".css")) {
|
|
3709
|
+
injectGlobal(p);
|
|
3710
|
+
return;
|
|
3711
|
+
}
|
|
3707
3712
|
return run(p, path2, false);
|
|
3708
3713
|
} else {
|
|
3709
3714
|
const request = new XMLHttpRequest();
|