Releases: vitejs/vite-plugin-react
[email protected]
Please refer to CHANGELOG.md for details.
[email protected]
Please refer to CHANGELOG.md for details.
[email protected]
Please refer to CHANGELOG.md for details.
[email protected]
(Same content as v5.0.0-beta.0 https://github.com/vitejs/vite-plugin-react/releases/tag/plugin-react%405.0.0-beta.0)
Use Oxc for react refresh transform in rolldown-vite
When used with rolldown-vite, this plugin now uses Oxc for react refresh transform.
Since this behavior is what @vitejs/plugin-react-oxc
did, @vitejs/plugin-react-oxc
is now deprecated and the disableOxcRecommendation
option is removed.
Also, while @vitejs/plugin-react-oxc
used the production JSX transform even for NODE_ENV=development
build, @vitejs/plugin-react
uses the development JSX transform for NODE_ENV=development
build.
Allow processing files in node_modules
The default value of exclude
options is now [/\/node_modules\//]
to allow processing files in node_modules
directory. It was previously []
and files in node_modules
was always excluded regardless of the value of exclude
option.
react
and react-dom
is no longer added to resolve.dedupe
automatically
Adding values to resolve.dedupe
forces Vite to resolve them differently from how Node.js does, which can be confusing and may not be expected. This plugin no longer adds react
and react-dom
to resolve.dedupe
automatically.
If you encounter errors after upgrading, check your package.json for version mismatches in dependencies
or devDependencies
, as well as your package manager’s configuration. If you prefer the previous behavior, you can manually add react
and react-dom
to resolve.dedupe
.
Remove old babel-plugin-react-compiler
support that requires runtimeModule
option
runtimeModule
option is no longer needed in newer babel-plugin-react-compiler
versions. Make sure to use a newer version of babel-plugin-react-compiler
that supports target
option.
Require Node 20.19+, 22.12+
This plugin now requires Node 20.19+ or 22.12+.
[email protected]
(Same content as v4.0.0-beta.0 https://github.com/vitejs/vite-plugin-react/releases/edit/plugin-react-swc%404.0.0-beta.0)
Require Node 20.19+, 22.12+
This plugin now requires Node 20.19+ or 22.12+.
[email protected]
(Same content as v0.4.0-beta.0 https://github.com/vitejs/vite-plugin-react/releases/edit/plugin-react-oxc%400.4.0-beta.0)
Deprecate this plugin
The changes of this plugin is now included in @vitejs/plugin-react
. Please use @vitejs/plugin-react
instead.
Allow processing files in node_modules
The default value of exclude
options is now [/\/node_modules\//]
to allow processing files in node_modules
directory. It was previously []
and files in node_modules
was always excluded regardless of the value of exclude
option.
Require Node 20.19+, 22.12+
This plugin now requires Node 20.19+ or 22.12+.
[email protected]
Please refer to CHANGELOG.md for details.
[email protected]
Please refer to CHANGELOG.md for details.
[email protected]
Please refer to CHANGELOG.md for details.
[email protected]
Use Oxc for react refresh transform in rolldown-vite
When used with rolldown-vite, this plugin now uses Oxc for react refresh transform.
Since this behavior is what @vitejs/plugin-react-oxc
did, @vitejs/plugin-react-oxc
is now deprecated and the disableOxcRecommendation
option is removed.
Also, while @vitejs/plugin-react-oxc
used the production JSX transform even for NODE_ENV=development
build, @vitejs/plugin-react
uses the development JSX transform for NODE_ENV=development
build.
Allow processing files in node_modules
The default value of exclude
options is now [/\/node_modules\//]
to allow processing files in node_modules
directory. It was previously []
and files in node_modules
was always excluded regardless of the value of exclude
option.
react
and react-dom
is no longer added to resolve.dedupe
automatically
Adding values to resolve.dedupe
forces Vite to resolve them differently from how Node.js does, which can be confusing and may not be expected. This plugin no longer adds react
and react-dom
to resolve.dedupe
automatically.
If you encounter errors after upgrading, check your package.json for version mismatches in dependencies
or devDependencies
, as well as your package manager’s configuration. If you prefer the previous behavior, you can manually add react
and react-dom
to resolve.dedupe
.
Remove old babel-plugin-react-compiler
support that requires runtimeModule
option
runtimeModule
option is no longer needed in newer babel-plugin-react-compiler
versions. Make sure to use a newer version of babel-plugin-react-compiler
that supports target
option.
Require Node 20.19+, 22.12+
This plugin now requires Node 20.19+ or 22.12+.