Bump @vitejs/plugin-react from 4.5.0 to 5.0.1
Type: Pull Request
State: Closed
![dependabot[bot]](https://github.com/dependabot.png)
Association: Contributor
Comments: 4
(15 days ago)
(8 days ago)
(8 days ago)
dependencies javascript
Bumps @vitejs/plugin-react from 4.5.0 to 5.0.1.
Release notes
Sourced from @vitejs/plugin-react
's releases.
plugin-react@5.0.1
Set
optimizeDeps.rollupOptions.transform.jsx
instead ofoptimizeDeps.rollupOptions.jsx
for rolldown-vite (#735)
optimizeDeps.rollupOptions.jsx
is going to be deprecated in favor ofoptimizeDeps.rollupOptions.transform.jsx
.Perf: skip
babel-plugin-react-compiler
if code has no"use memo"
when{ compilationMode: "annotation" }
(#734)Respect tsconfig
jsxImportSource
(#726)Fix
reactRefreshHost
option on rolldown-vite (#716)Fix
RefreshRuntime
being injected twice for class components on rolldown-vite (#708)Skip
babel-plugin-react-compiler
on non client environment (689)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.
... (truncated)
Changelog
Sourced from @vitejs/plugin-react
's changelog.
5.0.1 (2025-08-19)
Set
optimizeDeps.rollupOptions.transform.jsx
instead ofoptimizeDeps.rollupOptions.jsx
for rolldown-vite (#735)
optimizeDeps.rollupOptions.jsx
is going to be deprecated in favor ofoptimizeDeps.rollupOptions.transform.jsx
.Perf: skip
babel-plugin-react-compiler
if code has no"use memo"
when{ compilationMode: "annotation" }
(#734)Respect tsconfig
jsxImportSource
(#726)Fix
reactRefreshHost
option on rolldown-vite (#716)Fix
RefreshRuntime
being injected twice for class components on rolldown-vite (#708)Skip
babel-plugin-react-compiler
on non client environment (689)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)
... (truncated)
Commits
efe4344
release: plugin-react@5.0.1126bdb0
feat: setoptimizeDeps.rollupOptions.transform.jsx
instead of `optimizeDeps...d3934ad
perf(react): skip react compiler whencompilationMode: "annotation"
but no ...e2f0c78
fix(react): respect tsconfig jsxImportSource by default (#726)ba0323c
fix(deps): update all non-major dependencies (#729)d33f37d
refactor(react): simplify rolldown-vite only plugins (#720)d431680
fix(react): respectreactRefreshHost
option on rolldown-vite (#716)32c4e2c
chore(react): changelog for #689 (#715)a22f29b
fix(react): refreshWrapper was injected twice for class components when using...2f62dc0
fix(react): always skip react-compiler on non client envrionment (#689)- 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
+136
-80
Package Dependencies
Technical Details
ID: | 5738017 |
UUID: | 2772103189 |
Node ID: | PR_kwDOOyY8Qs6lOvAV |
Host: | GitHub |
Repository: | c6o/netlify-codezero-demo |
Merge State: | Unknown |