@absolutejs/absolute 0.19.0-beta.983 → 0.19.0-beta.984

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-f4OdRK/src/core/streamingSlotRegistrar.ts
4
+ // .angular-partial-tmp-WLpTnM/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-f4OdRK/src/core/streamingSlotRegistrar.ts
4
+ // .angular-partial-tmp-WLpTnM/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-f4OdRK/src/core/streamingSlotRegistry.ts
51
+ // .angular-partial-tmp-WLpTnM/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
@@ -24680,7 +24680,30 @@ var moduleServerPromise, getModuleServer = () => moduleServerPromise, runSequent
24680
24680
  await diskRefreshPromise;
24681
24681
  }, compileAndBundleAngular = async (state, pageEntries, angularDir) => {
24682
24682
  const { compileAngular: compileAngular2 } = await Promise.resolve().then(() => (init_compileAngular(), exports_compileAngular));
24683
- const { clientPaths, serverPaths } = await compileAngular2(pageEntries, angularDir, true, getStyleTransformConfig(state.config));
24683
+ const { runAngularHandlerScan: runAngularHandlerScan2 } = await Promise.resolve().then(() => (init_runAngularHandlerScan(), exports_runAngularHandlerScan));
24684
+ const { parseAngularProvidersImport: parseAngularProvidersImport2 } = await Promise.resolve().then(() => (init_parseAngularConfigImports(), exports_parseAngularConfigImports));
24685
+ const projectRoot = process.cwd();
24686
+ const providersImport = parseAngularProvidersImport2(projectRoot);
24687
+ const providersInjection = providersImport ? (() => {
24688
+ const scan = runAngularHandlerScan2(projectRoot, angularDir);
24689
+ const basePathByKey = new Map;
24690
+ for (const call of scan.calls) {
24691
+ basePathByKey.set(call.manifestKey, call.mountPath?.endsWith("/*") ? call.mountPath.slice(0, -1) : null);
24692
+ }
24693
+ const pagesByFile = new Map;
24694
+ for (const route of scan.pageRoutes) {
24695
+ const basePath = basePathByKey.get(route.manifestKey) ?? null;
24696
+ pagesByFile.set(route.pageFile, {
24697
+ basePath: basePath === "/" ? null : basePath,
24698
+ hasRoutes: route.hasRoutes
24699
+ });
24700
+ }
24701
+ return {
24702
+ appProvidersSource: providersImport.absolutePath,
24703
+ pagesByFile
24704
+ };
24705
+ })() : undefined;
24706
+ const { clientPaths, serverPaths } = await compileAngular2(pageEntries, angularDir, true, getStyleTransformConfig(state.config), providersInjection);
24684
24707
  (async () => {
24685
24708
  try {
24686
24709
  const { primeComponentFingerprint: primeComponentFingerprint2 } = await Promise.resolve().then(() => (init_fastHmrCompiler(), exports_fastHmrCompiler));
@@ -26834,5 +26857,5 @@ export {
26834
26857
  build
26835
26858
  };
26836
26859
 
26837
- //# debugId=B74765FBCFC497CE64756E2164756E21
26860
+ //# debugId=AFDCA0EAFC10E90864756E2164756E21
26838
26861
  //# sourceMappingURL=build.js.map