@stacksjs/stx 0.2.180 → 0.2.181
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/cli.js +847 -845
- package/dist/component-renderer.js +1 -1
- package/dist/composable-loader.js +2 -1
- package/dist/craft.js +395 -393
- package/dist/framework-composables.js +2 -1
- package/dist/pwa.js +371 -369
- package/dist/ssg.js +342 -340
- package/dist/store-loader.js +2 -1
- package/dist/utils.js +13 -3
- package/dist/variable-extractor.js +2 -1
- package/package.json +5 -5
|
@@ -655,7 +655,7 @@ async function processCustomElementTags(template, context, filePath, options, de
|
|
|
655
655
|
mergedProps[key] = value;
|
|
656
656
|
for (const [key, value] of Object.entries(resolvedProps.serverDynamic))
|
|
657
657
|
mergedProps[key] = value;
|
|
658
|
-
let finalContent = await renderComponentWithSlot(componentPath, mergedProps, tag.content, componentsDir, context, filePath, options, processedComponents, dependencies);
|
|
658
|
+
let finalContent = await renderComponentWithSlot(componentPath, mergedProps, restoreStashedScripts(tag.content, stashed.scripts), componentsDir, context, filePath, options, processedComponents, dependencies);
|
|
659
659
|
if (Object.keys(resolvedProps.clientReactive).length > 0)
|
|
660
660
|
finalContent = emitClientReactiveAttrs(finalContent, resolvedProps.clientReactive);
|
|
661
661
|
if (Object.keys(resolvedProps.events).length > 0) {
|
|
@@ -5,6 +5,7 @@ import { readSigned, sourceSignature, writeSigned } from "./source-signature.js"
|
|
|
5
5
|
import { stripModuleImports } from "./store-imports.js";
|
|
6
6
|
import { STX_RUNTIME_GLOBALS } from "./runtime-globals.js";
|
|
7
7
|
import { transformStoreImports } from "./store-imports.js";
|
|
8
|
+
import { getSharedTranspiler } from "./utils.js";
|
|
8
9
|
const _cachedComposableScripts = new Map, _cachedDirs = new Map, DEFAULT_DIR_CANDIDATES = ["composables", "functions"];
|
|
9
10
|
function isSkippedFile(file) {
|
|
10
11
|
const name = path.basename(file, ".ts");
|
|
@@ -60,7 +61,7 @@ export async function getComposableScript(composablesDir) {
|
|
|
60
61
|
return null;
|
|
61
62
|
}
|
|
62
63
|
composableFiles.sort();
|
|
63
|
-
const transpiler =
|
|
64
|
+
const transpiler = getSharedTranspiler({ loader: "ts", target: "browser", define: getPublicEnvDefine() }), chunks = [], exportedNames = new Set, declaredNames = new Set;
|
|
64
65
|
for (const file of composableFiles)
|
|
65
66
|
try {
|
|
66
67
|
let code = await Bun.file(file).text();
|