@absolutejs/absolute 0.19.0-beta.94 → 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/package.json CHANGED
@@ -164,5 +164,5 @@
164
164
  "typecheck": "bun run vue-tsc --noEmit"
165
165
  },
166
166
  "types": "./dist/src/index.d.ts",
167
- "version": "0.19.0-beta.94"
167
+ "version": "0.19.0-beta.95"
168
168
  }