lilact 0.27.0 → 0.27.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 +18 -15
- package/dist/lilact.development.js.map +3 -3
- package/dist/lilact.development.min.js +6 -6
- package/dist/lilact.development.min.js.map +3 -3
- package/dist/lilact.production.min.js +6 -6
- package/docs/functions/hooks.createContext.html +1 -1
- package/docs/functions/hooks.startTransition.html +1 -1
- package/docs/functions/hooks.useActionState.html +1 -1
- package/docs/functions/hooks.useContext.html +1 -1
- package/docs/functions/hooks.useDebugValue.html +1 -1
- package/docs/functions/hooks.useDeferredValue.html +1 -1
- package/docs/functions/hooks.useEffect.html +1 -1
- package/docs/functions/hooks.useId.html +1 -1
- package/docs/functions/hooks.useImperativeHandle.html +1 -1
- package/docs/functions/hooks.useInsertionEffect.html +1 -1
- package/docs/functions/hooks.useLayoutEffect.html +1 -1
- package/docs/functions/hooks.useLocalStorage.html +1 -1
- package/docs/functions/hooks.useMemo.html +1 -1
- package/docs/functions/hooks.useReducer.html +1 -1
- package/docs/functions/hooks.useRef.html +1 -1
- package/docs/functions/hooks.useTransition.html +1 -1
- package/docs/functions/run.runScripts.html +1 -1
- package/docs/static/lilact.development.js +18 -15
- package/docs/static/lilact.development.js.map +3 -3
- package/docs/static/lilact.development.min.js +6 -6
- package/docs/static/lilact.development.min.js.map +3 -3
- package/docs/static/lilact.production.min.js +6 -6
- package/examples/lilact.development.js +18 -15
- package/examples/lilact.development.js.map +3 -3
- package/examples/lilact.development.min.js +6 -6
- package/examples/lilact.development.min.js.map +3 -3
- package/examples/lilact.production.min.js +6 -6
- package/package.json +1 -1
- package/src/hooks.jsx +29 -9
- package/src/lilact.jsx +4 -2
- package/src/run.jsx +2 -2
package/src/run.jsx
CHANGED
|
@@ -361,9 +361,9 @@ function scriptTags() {
|
|
|
361
361
|
}));
|
|
362
362
|
}
|
|
363
363
|
|
|
364
|
-
export function runScripts() {
|
|
364
|
+
export async function runScripts() {
|
|
365
365
|
for (const script of scriptTags()) {
|
|
366
|
-
if (script.src) require(script.src);
|
|
366
|
+
if (script.src) await require(script.src);
|
|
367
367
|
if (script.content) run(script.content);
|
|
368
368
|
}
|
|
369
369
|
}
|