@absolutejs/absolute 0.19.0-beta.92 → 0.19.0-beta.93

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.
@@ -102,6 +102,7 @@ export const handleModuleUpdate = (message: {
102
102
  export const handleRebuildComplete = (message: {
103
103
  data: {
104
104
  affectedFrameworks?: string[];
105
+ fullReload?: boolean;
105
106
  manifest?: Record<string, string>;
106
107
  };
107
108
  }) => {
@@ -112,6 +113,15 @@ export const handleRebuildComplete = (message: {
112
113
  window.__HMR_MANIFEST__ = message.data.manifest;
113
114
  }
114
115
 
116
+ // Subprocess build: the server's manifest now points to fresh
117
+ // bundles. Reload to get the new HTML (with updated script tag)
118
+ // and let React hydrate with the fresh bundled JS.
119
+ if (message.data.fullReload) {
120
+ window.location.reload();
121
+
122
+ return;
123
+ }
124
+
115
125
  if (
116
126
  message.data.affectedFrameworks &&
117
127
  !message.data.affectedFrameworks.includes('angular') &&
package/dist/index.js CHANGED
@@ -204407,6 +204407,7 @@ var moduleServerPromise, getModuleServer = () => moduleServerPromise, parseError
204407
204407
  broadcastToClients(state, {
204408
204408
  data: {
204409
204409
  affectedFrameworks,
204410
+ fullReload: wasSubprocess,
204410
204411
  manifest
204411
204412
  },
204412
204413
  message: "Rebuild completed successfully",
@@ -204415,22 +204416,6 @@ var moduleServerPromise, getModuleServer = () => moduleServerPromise, parseError
204415
204416
  if (filesToRebuild && filesToRebuild.length > 0 && !wasSubprocess) {
204416
204417
  await handleFullBuildHMR(state, config, affectedFrameworks, filesToRebuild, manifest, duration);
204417
204418
  }
204418
- if (wasSubprocess) {
204419
- const pageKey = "DocumentationIndex";
204420
- const reactFiles = (filesToRebuild ?? []).filter((f) => detectFramework(f, state.resolvedPaths) === "react");
204421
- const primarySource = reactFiles.find((f) => f.endsWith(".ts") && !f.endsWith(".d.ts"));
204422
- broadcastToClients(state, {
204423
- data: {
204424
- framework: "react",
204425
- hasComponentChanges: true,
204426
- hasCSSChanges: false,
204427
- manifest,
204428
- primarySource,
204429
- sourceFiles: reactFiles
204430
- },
204431
- type: "react-update"
204432
- });
204433
- }
204434
204419
  if (!wasSubprocess)
204435
204420
  broadcastFrameworkUpdates(state, affectedFrameworks, filesToRebuild, manifest, startTime);
204436
204421
  if (affectedFrameworks.includes("angular")) {
@@ -205342,5 +205327,5 @@ export {
205342
205327
  ANGULAR_INIT_TIMEOUT_MS
205343
205328
  };
205344
205329
 
205345
- //# debugId=7236A3D30608506064756E2164756E21
205330
+ //# debugId=2F782DFD89BAB86364756E2164756E21
205346
205331
  //# sourceMappingURL=index.js.map