Bump @vitejs/plugin-react from 4.5.0 to 5.0.0
Type: Pull Request
State: Closed
![dependabot[bot]](https://github.com/dependabot.png)
Association: Contributor
Comments: 4
(about 1 month ago)
(18 days ago)
(18 days ago)
dependencies javascript
Bumps @vitejs/plugin-react from 4.5.0 to 5.0.0.
Release notes
Sourced from @vitejs/plugin-react
's releases.
plugin-react@5.0.0
(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 thedisableOxcRecommendation
option is removed.Also, while
@vitejs/plugin-react-oxc
used the production JSX transform even forNODE_ENV=development
build,@vitejs/plugin-react
uses the development JSX transform forNODE_ENV=development
build.Allow processing files in
node_modules
The default value of
exclude
options is now[/\/node_modules\//]
to allow processing files innode_modules
directory. It was previously[]
and files innode_modules
was always excluded regardless of the value ofexclude
option.
react
andreact-dom
is no longer added toresolve.dedupe
automaticallyAdding 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 addsreact
andreact-dom
toresolve.dedupe
automatically.If you encounter errors after upgrading, check your package.json for version mismatches in
dependencies
ordevDependencies
, as well as your package manager’s configuration. If you prefer the previous behavior, you can manually addreact
andreact-dom
toresolve.dedupe
.Remove old
babel-plugin-react-compiler
support that requiresruntimeModule
option
runtimeModule
option is no longer needed in newerbabel-plugin-react-compiler
versions. Make sure to use a newer version ofbabel-plugin-react-compiler
that supportstarget
option.Require Node 20.19+, 22.12+
This plugin now requires Node 20.19+ or 22.12+.
plugin-react@5.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 thedisableOxcRecommendation
option is removed.Also, while
@vitejs/plugin-react-oxc
used the production JSX transform even forNODE_ENV=development
build,@vitejs/plugin-react
uses the development JSX transform forNODE_ENV=development
build.Allow processing files in
node_modules
The default value of
exclude
options is now[/\/node_modules\//]
to allow processing files innode_modules
directory. It was previously[]
and files innode_modules
was always excluded regardless of the value ofexclude
option.
react
andreact-dom
is no longer added toresolve.dedupe
automaticallyAdding 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 addsreact
andreact-dom
toresolve.dedupe
automatically.If you encounter errors after upgrading, check your package.json for version mismatches in
dependencies
ordevDependencies
, as well as your package manager’s configuration. If you prefer the previous behavior, you can manually addreact
andreact-dom
toresolve.dedupe
.Remove old
babel-plugin-react-compiler
support that requiresruntimeModule
option
... (truncated)
Changelog
Sourced from @vitejs/plugin-react
's changelog.
5.0.0 (2025-08-07)
5.0.0-beta.0 (2025-07-28)
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 thedisableOxcRecommendation
option is removed.Also, while
@vitejs/plugin-react-oxc
used the production JSX transform even forNODE_ENV=development
build,@vitejs/plugin-react
uses the development JSX transform forNODE_ENV=development
build.Allow processing files in
node_modules
The default value of
exclude
options is now[/\/node_modules\//]
to allow processing files innode_modules
directory. It was previously[]
and files innode_modules
was always excluded regardless of the value ofexclude
option.
react
andreact-dom
is no longer added toresolve.dedupe
automaticallyAdding 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 addsreact
andreact-dom
toresolve.dedupe
automatically.If you encounter errors after upgrading, check your package.json for version mismatches in
dependencies
ordevDependencies
, as well as your package manager’s configuration. If you prefer the previous behavior, you can manually addreact
andreact-dom
toresolve.dedupe
.Remove old
babel-plugin-react-compiler
support that requiresruntimeModule
option
runtimeModule
option is no longer needed in newerbabel-plugin-react-compiler
versions. Make sure to use a newer version ofbabel-plugin-react-compiler
that supportstarget
option.Require Node 20.19+, 22.12+
This plugin now requires Node 20.19+ or 22.12+.
4.7.0 (2025-07-18)
Add HMR support for compound components (#518)
HMR now works for compound components like this:
const Root = () => <div>Accordion Root</div> const Item = () => <div>Accordion Item</div>
export const Accordion = { Root, Item }
Return
Plugin[]
instead ofPluginOption[]
(#537)The return type has changed from
react(): PluginOption[]
to more specialized typereact(): Plugin[]
. This allows for type-safe manipulation of plugins, for example:// previously this causes type errors react({ babel: { plugins: ['babel-plugin-react-compiler'] } }) </tr></table>
... (truncated)
Commits
9e4a944
release: plugin-react@5.0.061d777d
fix(deps): update all non-major dependencies (#670)7d3a57a
release: plugin-react@5.0.0-beta.09ffd86d
fix(react): use development jsx transform forNODE_ENV=development
build (#...133d786
feat: mergeplugin-react-oxc
intoplugin-react
(#609)26326b3
feat!: support including files in node_modules (#306)9ce3b22
fix(deps): update all non-major dependencies (#593)cadd7d2
fix!: removeresolve.dedupe
(#586)005f16e
refactor!: remove oldbabel-plugin-react-compiler
support (#584)b9efa3f
refactor!: bump required node version to 20.19+, 22.12+ and drop CJS build (#...- Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase
.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebase
will rebase this PR@dependabot recreate
will recreate this PR, overwriting any edits that have been made to it@dependabot merge
will merge this PR after your CI passes on it@dependabot squash and merge
will squash and merge this PR after your CI passes on it@dependabot cancel merge
will cancel a previously requested merge and block automerging@dependabot reopen
will reopen this PR if it is closed@dependabot close
will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditions
will show all of the ignore conditions of the specified dependency@dependabot ignore this major version
will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor version
will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependency
will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Pull Request Statistics
1
2
+72
-71
Package Dependencies
Technical Details
ID: | 4884298 |
UUID: | 2735418127 |
Node ID: | PR_kwDOOyY8Qs6jCysP |
Host: | GitHub |
Repository: | c6o/netlify-codezero-demo |
Merge State: | Unknown |