@absolutejs/absolute 0.19.0-beta.90 → 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.
@@ -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') &&
@@ -495,7 +495,8 @@ var generateManifest = (outputs, buildPath) => outputs.reduce((manifest, artifac
495
495
  }, {});
496
496
 
497
497
  // src/build/freshBuildWorker.ts
498
- var config = JSON.parse(process.argv[1]);
498
+ var configArg = process.argv.find((a) => a.startsWith("{"));
499
+ var config = JSON.parse(configArg);
499
500
  var reactDir = config.reactDirectory ? resolve2(config.reactDirectory) : undefined;
500
501
  var buildDir = resolve2(config.buildDirectory || "build");
501
502
  var hmr = config.options?.injectHMR === true;
@@ -541,7 +542,7 @@ var result = await bunBuild2({
541
542
  ...hmr ? { jsx: { development: true }, reactFastRefresh: true } : {},
542
543
  naming: "[dir]/[name].[hash].[ext]",
543
544
  outdir: buildDir,
544
- root: resolve2(reactDir, ".."),
545
+ root: reactDir,
545
546
  splitting: true,
546
547
  target: "browser",
547
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=2F782DFD89BAB86364756E2164756E21
205345
+ //# debugId=7236A3D30608506064756E2164756E21
205331
205346
  //# sourceMappingURL=index.js.map