Releases: vitejs/vite-plugin-react
plugin-react-oxc@0.2.3
Disable refresh transform when server.hmr: false
is set #502
This fixes "$RefreshReg$
is not defined" error when running Vitest with the plugin.
plugin-react@4.5.2
Suggest @vitejs/plugin-react-oxc
if rolldown-vite is detected #491
Emit a log which recommends @vitejs/plugin-react-oxc
when rolldown-vite
is detected to improve performance and use Oxc under the hood. The warning can be disabled by setting disableOxcRecommendation: false
in the plugin options.
Use optimizeDeps.rollupOptions
instead of optimizeDeps.esbuildOptions
for rolldown-vite #489
This suppresses the warning about optimizeDeps.esbuildOptions
being deprecated in rolldown-vite.
Add Vite 7-beta to peerDependencies range #497
React plugins are compatible with Vite 7, this removes the warning when testing the beta.
plugin-react-swc@3.10.2
Suggest @vitejs/plugin-react-oxc
if rolldown-vite is detected #491
Emit a log which recommends @vitejs/plugin-react-oxc
when rolldown-vite
is detected to improve performance and use Oxc under the hood. The warning can be disabled by setting disableOxcRecommendation: false
in the plugin options.
Use optimizeDeps.rollupOptions
instead of optimizeDeps.esbuildOptions
for rolldown-vite #489
This suppresses the warning about optimizeDeps.esbuildOptions
being deprecated in rolldown-vite.
Add Vite 7-beta to peerDependencies range #497
React plugins are compatible with Vite 7, this removes the warning when testing the beta.
plugin-react-oxc@0.2.2
Add Vite 7-beta to peerDependencies range #497
React plugins are compatible with Vite 7, this removes the warning when testing the beta.
plugin-react@4.5.1
Add explicit semicolon in preambleCode #485
This fixes an edge case when using HTML minifiers that strips line breaks aggressively.
plugin-react-swc@3.10.1
Add explicit semicolon in preambleCode #485
This fixes an edge case when using HTML minifiers that strips line breaks aggressively.
plugin-react-oxc@0.2.1
Add explicit semicolon in preambleCode #485
This fixes an edge case when using HTML minifiers that strips line breaks aggressively.
plugin-react@4.5.0
plugin-react-swc@3.10.0
Add filter
for rolldown-vite #470
Added filter
so that it is more performant when running this plugin with rolldown-powered version of Vite.
Skip HMR preamble in Vitest browser mode #478
This was causing annoying Sourcemap for "/@react-refresh" points to missing source files
and is unnecessary in test mode.
Skip HMR for JSX files with hooks #480
This removes the HMR warning for hooks with JSX.