@absolutejs/absolute 0.19.0-beta.991 → 0.19.0-beta.993
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/index.js
CHANGED
|
@@ -13372,20 +13372,23 @@ var resolveDevClientDir3 = () => {
|
|
|
13372
13372
|
server: childResult.serverPath
|
|
13373
13373
|
});
|
|
13374
13374
|
}
|
|
13375
|
-
const generateRenderFunction = (ssr) =>
|
|
13376
|
-
|
|
13377
|
-
|
|
13378
|
-
|
|
13379
|
-
|
|
13380
|
-
|
|
13381
|
-
|
|
13382
|
-
|
|
13383
|
-
|
|
13384
|
-
|
|
13385
|
-
|
|
13386
|
-
|
|
13387
|
-
|
|
13388
|
-
|
|
13375
|
+
const generateRenderFunction = (ssr) => {
|
|
13376
|
+
const rendered = compiler.compileTemplate({
|
|
13377
|
+
compilerOptions: {
|
|
13378
|
+
bindingMetadata: compiledScript.bindings,
|
|
13379
|
+
expressionPlugins: ["typescript"],
|
|
13380
|
+
isCustomElement: (tag) => tag === "absolute-island",
|
|
13381
|
+
prefixIdentifiers: true
|
|
13382
|
+
},
|
|
13383
|
+
filename: sourceFilePath,
|
|
13384
|
+
id: componentId,
|
|
13385
|
+
scoped: descriptor.styles.some((styleBlock) => styleBlock.scoped),
|
|
13386
|
+
source: descriptor.template?.content ?? "",
|
|
13387
|
+
ssr,
|
|
13388
|
+
ssrCssVars: descriptor.cssVars
|
|
13389
|
+
}).code;
|
|
13390
|
+
return transpiler4.transformSync(rendered).replace(/(['"])(\.{1,2}\/[^'"]+)(['"])/g, (_2, quoteStart, relativeImport, quoteEnd) => `${quoteStart}${toJs(relativeImport, sourceDir)}${quoteEnd}`);
|
|
13391
|
+
};
|
|
13389
13392
|
const localCss = await Promise.all(descriptor.styles.map(async (styleBlock) => compiler.compileStyle({
|
|
13390
13393
|
filename: sourceFilePath,
|
|
13391
13394
|
id: componentId,
|
|
@@ -13655,6 +13658,26 @@ if (typeof __VUE_HMR_RUNTIME__ !== 'undefined') {
|
|
|
13655
13658
|
serverPath: result.serverPath
|
|
13656
13659
|
};
|
|
13657
13660
|
}));
|
|
13661
|
+
const queue = Array.from(allTsHelperPaths);
|
|
13662
|
+
while (queue.length > 0) {
|
|
13663
|
+
const tsPath = queue.shift();
|
|
13664
|
+
if (!tsPath)
|
|
13665
|
+
continue;
|
|
13666
|
+
const sourceCode = await file3(tsPath).text();
|
|
13667
|
+
const helperDir = dirname15(tsPath);
|
|
13668
|
+
for (const dep of extractImports(sourceCode)) {
|
|
13669
|
+
if (!dep.startsWith(".") || isStylePath(dep) || dep.endsWith(".vue")) {
|
|
13670
|
+
continue;
|
|
13671
|
+
}
|
|
13672
|
+
const resolved = resolveHelperTsPath(helperDir, dep);
|
|
13673
|
+
if (!existsSync22(resolved))
|
|
13674
|
+
continue;
|
|
13675
|
+
if (allTsHelperPaths.has(resolved))
|
|
13676
|
+
continue;
|
|
13677
|
+
allTsHelperPaths.add(resolved);
|
|
13678
|
+
queue.push(resolved);
|
|
13679
|
+
}
|
|
13680
|
+
}
|
|
13658
13681
|
await Promise.all(Array.from(allTsHelperPaths).map(async (tsPath) => {
|
|
13659
13682
|
const sourceCode = await file3(tsPath).text();
|
|
13660
13683
|
const transpiledCode = transpiler4.transformSync(sourceCode);
|
|
@@ -35658,5 +35681,5 @@ export {
|
|
|
35658
35681
|
ANGULAR_INIT_TIMEOUT_MS
|
|
35659
35682
|
};
|
|
35660
35683
|
|
|
35661
|
-
//# debugId=
|
|
35684
|
+
//# debugId=A01D45F591D872F664756E2164756E21
|
|
35662
35685
|
//# sourceMappingURL=index.js.map
|