@absolutejs/absolute 0.19.0-beta.91 → 0.19.0-beta.92
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 +17 -2
- package/dist/build.js.map +3 -3
- package/dist/dev/client/handlers/rebuild.ts +0 -11
- package/dist/freshBuildWorker.js +1 -1
- package/dist/index.js +17 -2
- package/dist/index.js.map +3 -3
- package/package.json +1 -1
|
@@ -102,7 +102,6 @@ export const handleModuleUpdate = (message: {
|
|
|
102
102
|
export const handleRebuildComplete = (message: {
|
|
103
103
|
data: {
|
|
104
104
|
affectedFrameworks?: string[];
|
|
105
|
-
fullReload?: boolean;
|
|
106
105
|
manifest?: Record<string, string>;
|
|
107
106
|
};
|
|
108
107
|
}) => {
|
|
@@ -113,16 +112,6 @@ export const handleRebuildComplete = (message: {
|
|
|
113
112
|
window.__HMR_MANIFEST__ = message.data.manifest;
|
|
114
113
|
}
|
|
115
114
|
|
|
116
|
-
// Subprocess builds need a full page reload to pick up fresh
|
|
117
|
-
// bundled JS (the in-process Bun.build cache was stale).
|
|
118
|
-
if (message.data.fullReload) {
|
|
119
|
-
setTimeout(() => {
|
|
120
|
-
window.location.reload();
|
|
121
|
-
}, REBUILD_RELOAD_DELAY_MS);
|
|
122
|
-
|
|
123
|
-
return;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
115
|
if (
|
|
127
116
|
message.data.affectedFrameworks &&
|
|
128
117
|
!message.data.affectedFrameworks.includes('angular') &&
|
package/dist/freshBuildWorker.js
CHANGED
|
@@ -542,7 +542,7 @@ var result = await bunBuild2({
|
|
|
542
542
|
...hmr ? { jsx: { development: true }, reactFastRefresh: true } : {},
|
|
543
543
|
naming: "[dir]/[name].[hash].[ext]",
|
|
544
544
|
outdir: buildDir,
|
|
545
|
-
root:
|
|
545
|
+
root: reactDir,
|
|
546
546
|
splitting: true,
|
|
547
547
|
target: "browser",
|
|
548
548
|
throw: false
|
package/dist/index.js
CHANGED
|
@@ -204407,7 +204407,6 @@ var moduleServerPromise, getModuleServer = () => moduleServerPromise, parseError
|
|
|
204407
204407
|
broadcastToClients(state, {
|
|
204408
204408
|
data: {
|
|
204409
204409
|
affectedFrameworks,
|
|
204410
|
-
fullReload: wasSubprocess,
|
|
204411
204410
|
manifest
|
|
204412
204411
|
},
|
|
204413
204412
|
message: "Rebuild completed successfully",
|
|
@@ -204416,6 +204415,22 @@ var moduleServerPromise, getModuleServer = () => moduleServerPromise, parseError
|
|
|
204416
204415
|
if (filesToRebuild && filesToRebuild.length > 0 && !wasSubprocess) {
|
|
204417
204416
|
await handleFullBuildHMR(state, config, affectedFrameworks, filesToRebuild, manifest, duration);
|
|
204418
204417
|
}
|
|
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
|
+
}
|
|
204419
204434
|
if (!wasSubprocess)
|
|
204420
204435
|
broadcastFrameworkUpdates(state, affectedFrameworks, filesToRebuild, manifest, startTime);
|
|
204421
204436
|
if (affectedFrameworks.includes("angular")) {
|
|
@@ -205327,5 +205342,5 @@ export {
|
|
|
205327
205342
|
ANGULAR_INIT_TIMEOUT_MS
|
|
205328
205343
|
};
|
|
205329
205344
|
|
|
205330
|
-
//# debugId=
|
|
205345
|
+
//# debugId=7236A3D30608506064756E2164756E21
|
|
205331
205346
|
//# sourceMappingURL=index.js.map
|