lilact 0.29.0 → 0.29.1
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 +12 -7
- package/dist/lilact.development.js.map +3 -3
- package/dist/lilact.development.min.js +8 -8
- package/dist/lilact.development.min.js.map +3 -3
- package/dist/lilact.production.min.js +8 -8
- package/docs/classes/accessories.ErrorBoundary.html +8 -8
- package/docs/classes/accessories.Suspense.html +7 -7
- package/docs/classes/components.Component.html +11 -11
- package/docs/classes/components.HTMLComponent.html +11 -11
- package/docs/classes/components.RootComponent.html +11 -11
- package/docs/functions/components.cloneComponent.html +1 -1
- package/docs/functions/components.createComponent.html +1 -1
- package/docs/functions/components.createPortal.html +1 -1
- package/docs/functions/components.createRoot.html +1 -1
- package/docs/functions/components.memo.html +1 -1
- package/docs/functions/components.render.html +1 -1
- 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/index.html +1 -1
- package/docs/static/lilact.development.js +12 -7
- package/docs/static/lilact.development.js.map +3 -3
- package/docs/static/lilact.development.min.js +8 -8
- package/docs/static/lilact.development.min.js.map +3 -3
- package/docs/static/lilact.production.min.js +8 -8
- package/docs/variables/components.cloneElement.html +1 -1
- package/examples/index.html +1 -1
- package/examples/lilact.development.js +12 -7
- package/examples/lilact.development.js.map +3 -3
- package/examples/lilact.development.min.js +8 -8
- package/examples/lilact.development.min.js.map +3 -3
- package/examples/lilact.production.min.js +8 -8
- package/package.json +1 -1
- package/src/components.jsx +18 -6
- package/src/lilact.jsx +1 -1
- package/src/run.jsx +6 -2
package/src/run.jsx
CHANGED
|
@@ -163,6 +163,10 @@ function makeImportsObject(mod)
|
|
|
163
163
|
}
|
|
164
164
|
}
|
|
165
165
|
|
|
166
|
+
|
|
167
|
+
// ERROR IS FOUND WHEN run IS CALLED, AND NOT REQUIRE.
|
|
168
|
+
// REQUIRE REWRITES MODULE ANYWAY. THAT IS ALSO A PROBLEM.
|
|
169
|
+
|
|
166
170
|
export function run(
|
|
167
171
|
jsx,
|
|
168
172
|
path = `InlineJSX-${++Lilact.eval_num}`,
|
|
@@ -234,7 +238,7 @@ export function run(
|
|
|
234
238
|
globalThis.createComponent = Lilact.createComponent;
|
|
235
239
|
globalThis.Fragment = Lilact.Fragment;
|
|
236
240
|
|
|
237
|
-
|
|
241
|
+
makeImportsObject(module);
|
|
238
242
|
|
|
239
243
|
Lilact.scriptImportsObject = module.importsObject;
|
|
240
244
|
const result = eval(processed);
|
|
@@ -413,7 +417,7 @@ export function require(path) {
|
|
|
413
417
|
return undefined;
|
|
414
418
|
}
|
|
415
419
|
|
|
416
|
-
return run(request.responseText, path, {forceReload:
|
|
420
|
+
return run(request.responseText, path, {forceReload: true});
|
|
417
421
|
}
|
|
418
422
|
|
|
419
423
|
throw report(
|