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

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.
@@ -44,7 +44,17 @@ export const handleReactUpdate = (message: {
44
44
  const newUrl = componentKey && message.data.manifest?.[componentKey];
45
45
 
46
46
  if (newUrl && refreshRuntime) {
47
- applyRefreshImport(newUrl, refreshRuntime, serverDuration);
47
+ // Bundled files have bare specifiers (react-dom/client) that
48
+ // the browser can't resolve via import(). Only use import()
49
+ // for module server URLs (/@src/). Bundled files need a reload.
50
+ if (newUrl.startsWith('/@src/')) {
51
+ applyRefreshImport(newUrl, refreshRuntime, serverDuration);
52
+
53
+ return;
54
+ }
55
+
56
+ // Bundled file — reload to load the new script tag
57
+ window.location.reload();
48
58
 
49
59
  return;
50
60
  }
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
- manifest = { ...state.manifest, ...freshManifest };
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
  }
@@ -205327,5 +205330,5 @@ export {
205327
205330
  ANGULAR_INIT_TIMEOUT_MS
205328
205331
  };
205329
205332
 
205330
- //# debugId=2F782DFD89BAB86364756E2164756E21
205333
+ //# debugId=6E4CB61F15FAF56464756E2164756E21
205331
205334
  //# sourceMappingURL=index.js.map