@absolutejs/absolute 0.19.0-beta.886 → 0.19.0-beta.887

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-sgkxwm/src/core/streamingSlotRegistrar.ts
4
+ // .angular-partial-tmp-ZHuUgW/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-sgkxwm/src/core/streamingSlotRegistrar.ts
4
+ // .angular-partial-tmp-ZHuUgW/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-sgkxwm/src/core/streamingSlotRegistry.ts
51
+ // .angular-partial-tmp-ZHuUgW/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
@@ -20210,6 +20210,13 @@ var moduleServerPromise, getModuleServer = () => moduleServerPromise, runSequent
20210
20210
  }
20211
20211
  return ctx.debouncedPromise;
20212
20212
  };
20213
+ }, runAngularHmrIncremental = async (state) => {
20214
+ try {
20215
+ const { compileAngularForHmr: compileAngularForHmr2 } = await Promise.resolve().then(() => (init_hmrCompiler(), exports_hmrCompiler));
20216
+ await compileAngularForHmr2([], state.resolvedPaths.buildDir, state.lastUserEditedFiles ?? null);
20217
+ } catch (err) {
20218
+ logWarn(`[hmr] surgical-HMR shadow compile skipped: ${err instanceof Error ? err.message : String(err)}`);
20219
+ }
20213
20220
  }, compileAndBundleAngular = async (state, pageEntries, angularDir) => {
20214
20221
  const { compileAngular: compileAngular2 } = await Promise.resolve().then(() => (init_compileAngular(), exports_compileAngular));
20215
20222
  const { clientPaths, serverPaths } = await compileAngular2(pageEntries, angularDir, true, getStyleTransformConfig(state.config));
@@ -20255,19 +20262,15 @@ var moduleServerPromise, getModuleServer = () => moduleServerPromise, runSequent
20255
20262
  const runBundle = scheduleAngularBundleRebuild(state, pageEntries, angularDir);
20256
20263
  const queueDescription = (queue) => queue.map((e) => e.className).join(", ");
20257
20264
  if (verdict.tier === 0) {
20265
+ await runAngularHmrIncremental(state);
20258
20266
  broadcastSurgical(state, verdict.queue);
20259
20267
  const b2 = verdict.breakdown;
20260
20268
  logInfo(`[ng-hmr] tier-0 ${queueDescription(verdict.queue)} (server ${tierMs}ms: imports ${b2.importsMs}/resolve ${b2.resolveMs}/compile ${b2.compileMs}; awaiting client apply)`);
20261
- runBundle().catch((err) => {
20262
- logWarn(`[ng-hmr async bundle] rebuild failed: ${err instanceof Error ? err.message : String(err)}`);
20263
- });
20264
20269
  } else if (verdict.tier === 1 && verdict.kind === "remount") {
20270
+ await runAngularHmrIncremental(state);
20265
20271
  broadcastRemount(state, verdict.queue);
20266
20272
  const b2 = verdict.breakdown;
20267
20273
  logInfo(`[ng-hmr] tier-1a remount ${queueDescription(verdict.queue)} (server ${tierMs}ms: imports ${b2.importsMs}/resolve ${b2.resolveMs}/compile ${b2.compileMs}; awaiting client apply)`);
20268
- runBundle().catch((err) => {
20269
- logWarn(`[ng-hmr async bundle] rebuild failed: ${err instanceof Error ? err.message : String(err)}`);
20270
- });
20271
20274
  } else if (verdict.tier === 1 && verdict.kind === "rebootstrap") {
20272
20275
  await runBundle({ immediate: true });
20273
20276
  await broadcastRebootstrap(state, verdict.reason);
@@ -21993,5 +21996,5 @@ export {
21993
21996
  build
21994
21997
  };
21995
21998
 
21996
- //# debugId=8D490F35E105C28E64756E2164756E21
21999
+ //# debugId=7731A463849A677764756E2164756E21
21997
22000
  //# sourceMappingURL=build.js.map