@absolutejs/absolute 0.19.0-beta.992 → 0.19.0-beta.994

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) => compiler.compileTemplate({
13376
- compilerOptions: {
13377
- bindingMetadata: compiledScript.bindings,
13378
- expressionPlugins: ["typescript"],
13379
- isCustomElement: (tag) => tag === "absolute-island",
13380
- prefixIdentifiers: true
13381
- },
13382
- filename: sourceFilePath,
13383
- id: componentId,
13384
- scoped: descriptor.styles.some((styleBlock) => styleBlock.scoped),
13385
- source: descriptor.template?.content ?? "",
13386
- ssr,
13387
- ssrCssVars: descriptor.cssVars
13388
- }).code.replace(/(['"])(\.{1,2}\/[^'"]+)(['"])/g, (_2, quoteStart, relativeImport, quoteEnd) => `${quoteStart}${toJs(relativeImport, sourceDir)}${quoteEnd}`);
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=B3F9AE524DFEBB3B64756E2164756E21
35684
+ //# debugId=A01D45F591D872F664756E2164756E21
35682
35685
  //# sourceMappingURL=index.js.map