@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.
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  var __require = import.meta.require;
3
3
 
4
- // .angular-partial-tmp-Po6HbY/src/core/streamingSlotRegistrar.ts
4
+ // .angular-partial-tmp-j0Ay1h/src/core/streamingSlotRegistrar.ts
5
5
  var STREAMING_SLOT_REGISTRAR_KEY = Symbol.for("absolutejs.streamingSlotRegistrar");
6
6
  var STREAMING_SLOT_WARNING_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotWarningController");
7
7
  var STREAMING_SLOT_COLLECTION_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotCollectionController");
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  var __require = import.meta.require;
3
3
 
4
- // .angular-partial-tmp-Po6HbY/src/core/streamingSlotRegistrar.ts
4
+ // .angular-partial-tmp-j0Ay1h/src/core/streamingSlotRegistrar.ts
5
5
  var STREAMING_SLOT_REGISTRAR_KEY = Symbol.for("absolutejs.streamingSlotRegistrar");
6
6
  var STREAMING_SLOT_WARNING_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotWarningController");
7
7
  var STREAMING_SLOT_COLLECTION_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotCollectionController");
@@ -48,7 +48,7 @@ var warnMissingStreamingSlotCollector = (primitiveName) => {
48
48
  getWarningController()?.maybeWarn(primitiveName);
49
49
  };
50
50
 
51
- // .angular-partial-tmp-Po6HbY/src/core/streamingSlotRegistry.ts
51
+ // .angular-partial-tmp-j0Ay1h/src/core/streamingSlotRegistry.ts
52
52
  var STREAMING_SLOT_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotAsyncLocalStorage");
53
53
  var isObjectRecord2 = (value) => Boolean(value) && typeof value === "object";
54
54
  var isAsyncLocalStorage = (value) => isObjectRecord2(value) && ("getStore" in value) && typeof value.getStore === "function" && ("run" in value) && typeof value.run === "function";
package/dist/build.js CHANGED
@@ -13146,20 +13146,23 @@ var resolveDevClientDir3 = () => {
13146
13146
  server: childResult.serverPath
13147
13147
  });
13148
13148
  }
13149
- const generateRenderFunction = (ssr) => compiler.compileTemplate({
13150
- compilerOptions: {
13151
- bindingMetadata: compiledScript.bindings,
13152
- expressionPlugins: ["typescript"],
13153
- isCustomElement: (tag) => tag === "absolute-island",
13154
- prefixIdentifiers: true
13155
- },
13156
- filename: sourceFilePath,
13157
- id: componentId,
13158
- scoped: descriptor.styles.some((styleBlock) => styleBlock.scoped),
13159
- source: descriptor.template?.content ?? "",
13160
- ssr,
13161
- ssrCssVars: descriptor.cssVars
13162
- }).code.replace(/(['"])(\.{1,2}\/[^'"]+)(['"])/g, (_2, quoteStart, relativeImport, quoteEnd) => `${quoteStart}${toJs(relativeImport, sourceDir)}${quoteEnd}`);
13149
+ const generateRenderFunction = (ssr) => {
13150
+ const rendered = compiler.compileTemplate({
13151
+ compilerOptions: {
13152
+ bindingMetadata: compiledScript.bindings,
13153
+ expressionPlugins: ["typescript"],
13154
+ isCustomElement: (tag) => tag === "absolute-island",
13155
+ prefixIdentifiers: true
13156
+ },
13157
+ filename: sourceFilePath,
13158
+ id: componentId,
13159
+ scoped: descriptor.styles.some((styleBlock) => styleBlock.scoped),
13160
+ source: descriptor.template?.content ?? "",
13161
+ ssr,
13162
+ ssrCssVars: descriptor.cssVars
13163
+ }).code;
13164
+ return transpiler4.transformSync(rendered).replace(/(['"])(\.{1,2}\/[^'"]+)(['"])/g, (_2, quoteStart, relativeImport, quoteEnd) => `${quoteStart}${toJs(relativeImport, sourceDir)}${quoteEnd}`);
13165
+ };
13163
13166
  const localCss = await Promise.all(descriptor.styles.map(async (styleBlock) => compiler.compileStyle({
13164
13167
  filename: sourceFilePath,
13165
13168
  id: componentId,
@@ -13429,6 +13432,26 @@ if (typeof __VUE_HMR_RUNTIME__ !== 'undefined') {
13429
13432
  serverPath: result.serverPath
13430
13433
  };
13431
13434
  }));
13435
+ const queue = Array.from(allTsHelperPaths);
13436
+ while (queue.length > 0) {
13437
+ const tsPath = queue.shift();
13438
+ if (!tsPath)
13439
+ continue;
13440
+ const sourceCode = await file2(tsPath).text();
13441
+ const helperDir = dirname13(tsPath);
13442
+ for (const dep of extractImports(sourceCode)) {
13443
+ if (!dep.startsWith(".") || isStylePath(dep) || dep.endsWith(".vue")) {
13444
+ continue;
13445
+ }
13446
+ const resolved = resolveHelperTsPath(helperDir, dep);
13447
+ if (!existsSync21(resolved))
13448
+ continue;
13449
+ if (allTsHelperPaths.has(resolved))
13450
+ continue;
13451
+ allTsHelperPaths.add(resolved);
13452
+ queue.push(resolved);
13453
+ }
13454
+ }
13432
13455
  await Promise.all(Array.from(allTsHelperPaths).map(async (tsPath) => {
13433
13456
  const sourceCode = await file2(tsPath).text();
13434
13457
  const transpiledCode = transpiler4.transformSync(sourceCode);
@@ -27000,5 +27023,5 @@ export {
27000
27023
  build
27001
27024
  };
27002
27025
 
27003
- //# debugId=FD2252DE0FA04BFA64756E2164756E21
27026
+ //# debugId=602AA50458B9075264756E2164756E21
27004
27027
  //# sourceMappingURL=build.js.map