@absolutejs/absolute 0.19.0-beta.92 → 0.19.0-beta.94
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/.absolutejs/tsconfig.tsbuildinfo +1 -1
- package/dist/build.js +6 -18
- package/dist/build.js.map +3 -3
- package/dist/dev/client/handlers/rebuild.ts +10 -0
- package/dist/index.js +6 -18
- package/dist/index.js.map +3 -3
- package/package.json +1 -1
|
@@ -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
|
@@ -204375,7 +204375,10 @@ var moduleServerPromise, getModuleServer = () => moduleServerPromise, parseError
|
|
|
204375
204375
|
`).find((l) => l.startsWith("__MANIFEST__"));
|
|
204376
204376
|
if (manifestLine) {
|
|
204377
204377
|
const freshManifest = JSON.parse(manifestLine.slice("__MANIFEST__".length));
|
|
204378
|
-
|
|
204378
|
+
for (const [key, value] of Object.entries(freshManifest)) {
|
|
204379
|
+
state.manifest[key] = value;
|
|
204380
|
+
}
|
|
204381
|
+
manifest = state.manifest;
|
|
204379
204382
|
} else {
|
|
204380
204383
|
manifest = await build2(buildConfig);
|
|
204381
204384
|
}
|
|
@@ -204407,6 +204410,7 @@ var moduleServerPromise, getModuleServer = () => moduleServerPromise, parseError
|
|
|
204407
204410
|
broadcastToClients(state, {
|
|
204408
204411
|
data: {
|
|
204409
204412
|
affectedFrameworks,
|
|
204413
|
+
fullReload: wasSubprocess,
|
|
204410
204414
|
manifest
|
|
204411
204415
|
},
|
|
204412
204416
|
message: "Rebuild completed successfully",
|
|
@@ -204415,22 +204419,6 @@ var moduleServerPromise, getModuleServer = () => moduleServerPromise, parseError
|
|
|
204415
204419
|
if (filesToRebuild && filesToRebuild.length > 0 && !wasSubprocess) {
|
|
204416
204420
|
await handleFullBuildHMR(state, config, affectedFrameworks, filesToRebuild, manifest, duration);
|
|
204417
204421
|
}
|
|
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
204422
|
if (!wasSubprocess)
|
|
204435
204423
|
broadcastFrameworkUpdates(state, affectedFrameworks, filesToRebuild, manifest, startTime);
|
|
204436
204424
|
if (affectedFrameworks.includes("angular")) {
|
|
@@ -205342,5 +205330,5 @@ export {
|
|
|
205342
205330
|
ANGULAR_INIT_TIMEOUT_MS
|
|
205343
205331
|
};
|
|
205344
205332
|
|
|
205345
|
-
//# debugId=
|
|
205333
|
+
//# debugId=6E4CB61F15FAF56464756E2164756E21
|
|
205346
205334
|
//# sourceMappingURL=index.js.map
|