Skip to content

Commit 406259f

Browse files
committed
chore: update react plugin + fix __vite_plugin_react_preamble_installed__
1 parent 27bc24f commit 406259f

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

examples/react-server/src/features/bootstrap/plugin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export function vitePluginEntryBootstrap(): PluginOption {
1919
// wrapper entry to ensure client entry runs after vite/react inititialization
2020
return `
2121
import "${VIRTUAL_COPY_SERVER_CSS}";
22-
for (let i = 0; !window.__vite_plugin_react_preamble_installed__; i++) {
22+
for (let i = 0; !window.$RefreshReg$; i++) {
2323
await new Promise(resolve => setTimeout(resolve, 10 * (2 ** i)));
2424
}
2525
import("/src/entry-browser");

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"@types/node": "^22.10.8",
2323
"@types/react": "^19.0.7",
2424
"@types/react-dom": "^19.0.3",
25-
"@vitejs/plugin-react": "^4.3.4",
25+
"@vitejs/plugin-react": "4.4.0-beta.1",
2626
"esbuild": "^0.24.2",
2727
"magic-string": "^0.30.17",
2828
"miniflare": "^3.20241230.2",

pnpm-lock.yaml

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)