Releases: vitejs/vite-plugin-react
[email protected]
Please refer to CHANGELOG.md for details.
[email protected]
Add raw Rolldown support
This plugin only worked with Vite. But now it can also be used with raw Rolldown. The main purpose for using this plugin with Rolldown is to use react compiler.
[email protected]
Disable refresh transform when server.hmr: false
is set #502
This fixes "$RefreshReg$
is not defined" error when running Vitest with the plugin.
[email protected]
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.
[email protected]
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.
[email protected]
Add Vite 7-beta to peerDependencies range #497
React plugins are compatible with Vite 7, this removes the warning when testing the beta.
[email protected]
Add explicit semicolon in preambleCode #485
This fixes an edge case when using HTML minifiers that strips line breaks aggressively.
[email protected]
Add explicit semicolon in preambleCode #485
This fixes an edge case when using HTML minifiers that strips line breaks aggressively.
[email protected]
Add explicit semicolon in preambleCode #485
This fixes an edge case when using HTML minifiers that strips line breaks aggressively.