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

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
@@ -13251,7 +13251,17 @@ var resolveDevClientDir3 = () => {
13251
13251
  return "template-only";
13252
13252
  }
13253
13253
  return "full";
13254
- }, generateVueHmrId = (sourceFilePath, vueRootDir) => relative10(vueRootDir, sourceFilePath).replace(/\\/g, "/").replace(/\.vue$/, ""), extractImports = (sourceCode) => Array.from(sourceCode.matchAll(/import\s+[\s\S]+?['"]([^'"]+)['"]/g)).map((match) => match[1]).filter((importPath) => importPath !== undefined), toJs = (filePath, sourceDir) => {
13254
+ }, generateVueHmrId = (sourceFilePath, vueRootDir) => relative10(vueRootDir, sourceFilePath).replace(/\\/g, "/").replace(/\.vue$/, ""), extractImports = (sourceCode) => Array.from(sourceCode.matchAll(/import\s+[\s\S]+?['"]([^'"]+)['"]/g)).map((match) => match[1]).filter((importPath) => importPath !== undefined), resolveHelperTsPath = (sourceDir, helper) => {
13255
+ if (helper.endsWith(".ts"))
13256
+ return resolve23(sourceDir, helper);
13257
+ const direct = resolve23(sourceDir, `${helper}.ts`);
13258
+ if (existsSync22(direct))
13259
+ return direct;
13260
+ const indexed = resolve23(sourceDir, helper, "index.ts");
13261
+ if (existsSync22(indexed))
13262
+ return indexed;
13263
+ return direct;
13264
+ }, toJs = (filePath, sourceDir) => {
13255
13265
  if (filePath.endsWith(".vue"))
13256
13266
  return filePath.replace(/\.vue$/, ".js");
13257
13267
  if (filePath.endsWith(".ts"))
@@ -13262,6 +13272,14 @@ var resolveDevClientDir3 = () => {
13262
13272
  }
13263
13273
  return filePath;
13264
13274
  }
13275
+ if (sourceDir && (filePath.startsWith("./") || filePath.startsWith("../"))) {
13276
+ const directTs = resolve23(sourceDir, `${filePath}.ts`);
13277
+ if (existsSync22(directTs))
13278
+ return `${filePath}.js`;
13279
+ const indexedTs = resolve23(sourceDir, filePath, "index.ts");
13280
+ if (existsSync22(indexedTs))
13281
+ return `${filePath}/index.js`;
13282
+ }
13265
13283
  return `${filePath}.js`;
13266
13284
  }, stripExports2 = (code) => code.replace(/export\s+default/, "const script ="), mergeVueImports2 = (code) => {
13267
13285
  const lines = code.split(`
@@ -13456,7 +13474,7 @@ if (typeof __VUE_HMR_RUNTIME__ !== 'undefined') {
13456
13474
  hmrId,
13457
13475
  serverPath: serverOutputPath,
13458
13476
  tsHelperPaths: [
13459
- ...helperModulePaths.map((helper) => resolve23(dirname15(sourceFilePath), helper.endsWith(".ts") ? helper : `${helper}.ts`)),
13477
+ ...helperModulePaths.map((helper) => resolveHelperTsPath(dirname15(sourceFilePath), helper)),
13460
13478
  ...childBuildResults.flatMap((child) => child.tsHelperPaths)
13461
13479
  ]
13462
13480
  };
@@ -35648,5 +35666,5 @@ export {
35648
35666
  ANGULAR_INIT_TIMEOUT_MS
35649
35667
  };
35650
35668
 
35651
- //# debugId=17E22E0D3B1C272064756E2164756E21
35669
+ //# debugId=91DC7C98B20003CC64756E2164756E21
35652
35670
  //# sourceMappingURL=index.js.map