@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.
package/dist/index.js CHANGED
@@ -20307,6 +20307,13 @@ var moduleServerPromise, getModuleServer = () => moduleServerPromise, runSequent
20307
20307
  }
20308
20308
  return ctx.debouncedPromise;
20309
20309
  };
20310
+ }, runAngularHmrIncremental = async (state) => {
20311
+ try {
20312
+ const { compileAngularForHmr: compileAngularForHmr2 } = await Promise.resolve().then(() => (init_hmrCompiler(), exports_hmrCompiler));
20313
+ await compileAngularForHmr2([], state.resolvedPaths.buildDir, state.lastUserEditedFiles ?? null);
20314
+ } catch (err) {
20315
+ logWarn(`[hmr] surgical-HMR shadow compile skipped: ${err instanceof Error ? err.message : String(err)}`);
20316
+ }
20310
20317
  }, compileAndBundleAngular = async (state, pageEntries, angularDir) => {
20311
20318
  const { compileAngular: compileAngular2 } = await Promise.resolve().then(() => (init_compileAngular(), exports_compileAngular));
20312
20319
  const { clientPaths, serverPaths } = await compileAngular2(pageEntries, angularDir, true, getStyleTransformConfig(state.config));
@@ -20352,19 +20359,15 @@ var moduleServerPromise, getModuleServer = () => moduleServerPromise, runSequent
20352
20359
  const runBundle = scheduleAngularBundleRebuild(state, pageEntries, angularDir);
20353
20360
  const queueDescription = (queue) => queue.map((e) => e.className).join(", ");
20354
20361
  if (verdict.tier === 0) {
20362
+ await runAngularHmrIncremental(state);
20355
20363
  broadcastSurgical(state, verdict.queue);
20356
20364
  const b2 = verdict.breakdown;
20357
20365
  logInfo(`[ng-hmr] tier-0 ${queueDescription(verdict.queue)} (server ${tierMs}ms: imports ${b2.importsMs}/resolve ${b2.resolveMs}/compile ${b2.compileMs}; awaiting client apply)`);
20358
- runBundle().catch((err) => {
20359
- logWarn(`[ng-hmr async bundle] rebuild failed: ${err instanceof Error ? err.message : String(err)}`);
20360
- });
20361
20366
  } else if (verdict.tier === 1 && verdict.kind === "remount") {
20367
+ await runAngularHmrIncremental(state);
20362
20368
  broadcastRemount(state, verdict.queue);
20363
20369
  const b2 = verdict.breakdown;
20364
20370
  logInfo(`[ng-hmr] tier-1a remount ${queueDescription(verdict.queue)} (server ${tierMs}ms: imports ${b2.importsMs}/resolve ${b2.resolveMs}/compile ${b2.compileMs}; awaiting client apply)`);
20365
- runBundle().catch((err) => {
20366
- logWarn(`[ng-hmr async bundle] rebuild failed: ${err instanceof Error ? err.message : String(err)}`);
20367
- });
20368
20371
  } else if (verdict.tier === 1 && verdict.kind === "rebootstrap") {
20369
20372
  await runBundle({ immediate: true });
20370
20373
  await broadcastRebootstrap(state, verdict.reason);
@@ -30670,5 +30673,5 @@ export {
30670
30673
  ANGULAR_INIT_TIMEOUT_MS
30671
30674
  };
30672
30675
 
30673
- //# debugId=59FE78EE649876C664756E2164756E21
30676
+ //# debugId=F971A5A35190242364756E2164756E21
30674
30677
  //# sourceMappingURL=index.js.map