@absolutejs/absolute 0.19.0-beta.992 → 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,
|
|
@@ -35678,5 +35681,5 @@ export {
|
|
|
35678
35681
|
ANGULAR_INIT_TIMEOUT_MS
|
|
35679
35682
|
};
|
|
35680
35683
|
|
|
35681
|
-
//# debugId=
|
|
35684
|
+
//# debugId=A01D45F591D872F664756E2164756E21
|
|
35682
35685
|
//# sourceMappingURL=index.js.map
|