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

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
@@ -13432,14 +13432,6 @@ if (typeof __VUE_HMR_RUNTIME__ !== 'undefined') {
13432
13432
  const serverCode = assembleModule(generateRenderFunction(true), "ssrRender", false) + islandMetadataExports;
13433
13433
  const clientOutputPath = join28(outputDirs.client, `${relativeWithoutExtension}.js`);
13434
13434
  const serverOutputPath = join28(outputDirs.server, `${relativeWithoutExtension}.js`);
13435
- const relDir = dirname15(relativeFilePath);
13436
- const relDepth = relDir === "." ? 0 : relDir.split("/").length;
13437
- const adjustImports = (code) => code.replace(/(from\s+['"])(\.\.\/(?:\.\.\/)*)/g, (_2, prefix, dots) => {
13438
- const upCount = dots.split("/").length - 1;
13439
- if (upCount <= relDepth)
13440
- return `${prefix}${dots}`;
13441
- return `${prefix}../../${dots}`;
13442
- });
13443
13435
  const rewritePackageImports = (code, outputPath, mode) => {
13444
13436
  let result2 = code;
13445
13437
  for (const [bareImport, paths] of packageImportRewrites) {
@@ -13453,8 +13445,8 @@ if (typeof __VUE_HMR_RUNTIME__ !== 'undefined') {
13453
13445
  };
13454
13446
  await mkdir5(dirname15(clientOutputPath), { recursive: true });
13455
13447
  await mkdir5(dirname15(serverOutputPath), { recursive: true });
13456
- const clientFinal = rewritePackageImports(adjustImports(clientCode), clientOutputPath, "client");
13457
- const serverFinal = rewritePackageImports(adjustImports(serverCode), serverOutputPath, "server");
13448
+ const clientFinal = rewritePackageImports(clientCode, clientOutputPath, "client");
13449
+ const serverFinal = rewritePackageImports(serverCode, serverOutputPath, "server");
13458
13450
  const inlineSourceMapFor = (finalContent) => {
13459
13451
  if (!compiledScript.map || !hasScript)
13460
13452
  return "";
@@ -13663,6 +13655,26 @@ if (typeof __VUE_HMR_RUNTIME__ !== 'undefined') {
13663
13655
  serverPath: result.serverPath
13664
13656
  };
13665
13657
  }));
13658
+ const queue = Array.from(allTsHelperPaths);
13659
+ while (queue.length > 0) {
13660
+ const tsPath = queue.shift();
13661
+ if (!tsPath)
13662
+ continue;
13663
+ const sourceCode = await file3(tsPath).text();
13664
+ const helperDir = dirname15(tsPath);
13665
+ for (const dep of extractImports(sourceCode)) {
13666
+ if (!dep.startsWith(".") || isStylePath(dep) || dep.endsWith(".vue")) {
13667
+ continue;
13668
+ }
13669
+ const resolved = resolveHelperTsPath(helperDir, dep);
13670
+ if (!existsSync22(resolved))
13671
+ continue;
13672
+ if (allTsHelperPaths.has(resolved))
13673
+ continue;
13674
+ allTsHelperPaths.add(resolved);
13675
+ queue.push(resolved);
13676
+ }
13677
+ }
13666
13678
  await Promise.all(Array.from(allTsHelperPaths).map(async (tsPath) => {
13667
13679
  const sourceCode = await file3(tsPath).text();
13668
13680
  const transpiledCode = transpiler4.transformSync(sourceCode);
@@ -35666,5 +35678,5 @@ export {
35666
35678
  ANGULAR_INIT_TIMEOUT_MS
35667
35679
  };
35668
35680
 
35669
- //# debugId=91DC7C98B20003CC64756E2164756E21
35681
+ //# debugId=B3F9AE524DFEBB3B64756E2164756E21
35670
35682
  //# sourceMappingURL=index.js.map