@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.
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  var __require = import.meta.require;
3
3
 
4
- // .angular-partial-tmp-dtSBzu/src/core/streamingSlotRegistrar.ts
4
+ // .angular-partial-tmp-gXUUA7/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-dtSBzu/src/core/streamingSlotRegistrar.ts
4
+ // .angular-partial-tmp-gXUUA7/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-dtSBzu/src/core/streamingSlotRegistry.ts
51
+ // .angular-partial-tmp-gXUUA7/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
@@ -13025,7 +13025,17 @@ var resolveDevClientDir3 = () => {
13025
13025
  return "template-only";
13026
13026
  }
13027
13027
  return "full";
13028
- }, 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) => {
13028
+ }, 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) => {
13029
+ if (helper.endsWith(".ts"))
13030
+ return resolve20(sourceDir, helper);
13031
+ const direct = resolve20(sourceDir, `${helper}.ts`);
13032
+ if (existsSync21(direct))
13033
+ return direct;
13034
+ const indexed = resolve20(sourceDir, helper, "index.ts");
13035
+ if (existsSync21(indexed))
13036
+ return indexed;
13037
+ return direct;
13038
+ }, toJs = (filePath, sourceDir) => {
13029
13039
  if (filePath.endsWith(".vue"))
13030
13040
  return filePath.replace(/\.vue$/, ".js");
13031
13041
  if (filePath.endsWith(".ts"))
@@ -13036,6 +13046,14 @@ var resolveDevClientDir3 = () => {
13036
13046
  }
13037
13047
  return filePath;
13038
13048
  }
13049
+ if (sourceDir && (filePath.startsWith("./") || filePath.startsWith("../"))) {
13050
+ const directTs = resolve20(sourceDir, `${filePath}.ts`);
13051
+ if (existsSync21(directTs))
13052
+ return `${filePath}.js`;
13053
+ const indexedTs = resolve20(sourceDir, filePath, "index.ts");
13054
+ if (existsSync21(indexedTs))
13055
+ return `${filePath}/index.js`;
13056
+ }
13039
13057
  return `${filePath}.js`;
13040
13058
  }, stripExports2 = (code) => code.replace(/export\s+default/, "const script ="), mergeVueImports2 = (code) => {
13041
13059
  const lines = code.split(`
@@ -13230,7 +13248,7 @@ if (typeof __VUE_HMR_RUNTIME__ !== 'undefined') {
13230
13248
  hmrId,
13231
13249
  serverPath: serverOutputPath,
13232
13250
  tsHelperPaths: [
13233
- ...helperModulePaths.map((helper) => resolve20(dirname13(sourceFilePath), helper.endsWith(".ts") ? helper : `${helper}.ts`)),
13251
+ ...helperModulePaths.map((helper) => resolveHelperTsPath(dirname13(sourceFilePath), helper)),
13234
13252
  ...childBuildResults.flatMap((child) => child.tsHelperPaths)
13235
13253
  ]
13236
13254
  };
@@ -26990,5 +27008,5 @@ export {
26990
27008
  build
26991
27009
  };
26992
27010
 
26993
- //# debugId=D5F157E27B971C2F64756E2164756E21
27011
+ //# debugId=E72E214C1BE2841564756E2164756E21
26994
27012
  //# sourceMappingURL=build.js.map