Bump @vitejs/plugin-react from 4.4.1 to 5.0.0
Type: Pull Request
State: Open
Association: Contributor
Comments: 0
(3 months ago)
(3 months ago)
dependencies javascript
Bumps @vitejs/plugin-react from 4.4.1 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-oxcdid,@vitejs/plugin-react-oxcis now deprecated and thedisableOxcRecommendationoption is removed.Also, while
@vitejs/plugin-react-oxcused the production JSX transform even forNODE_ENV=developmentbuild,@vitejs/plugin-reactuses the development JSX transform forNODE_ENV=developmentbuild.Allow processing files in
node_modulesThe default value of
excludeoptions is now[/\/node_modules\//]to allow processing files innode_modulesdirectory. It was previously[]and files innode_moduleswas always excluded regardless of the value ofexcludeoption.
reactandreact-domis no longer added toresolve.dedupeautomaticallyAdding values to
resolve.dedupeforces Vite to resolve them differently from how Node.js does, which can be confusing and may not be expected. This plugin no longer addsreactandreact-domtoresolve.dedupeautomatically.If you encounter errors after upgrading, check your package.json for version mismatches in
dependenciesordevDependencies, as well as your package manager’s configuration. If you prefer the previous behavior, you can manually addreactandreact-domtoresolve.dedupe.Remove old
babel-plugin-react-compilersupport that requiresruntimeModuleoption
runtimeModuleoption is no longer needed in newerbabel-plugin-react-compilerversions. Make sure to use a newer version ofbabel-plugin-react-compilerthat supportstargetoption.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-oxcdid,@vitejs/plugin-react-oxcis now deprecated and thedisableOxcRecommendationoption is removed.Also, while
@vitejs/plugin-react-oxcused the production JSX transform even forNODE_ENV=developmentbuild,@vitejs/plugin-reactuses the development JSX transform forNODE_ENV=developmentbuild.Allow processing files in
node_modulesThe default value of
excludeoptions is now[/\/node_modules\//]to allow processing files innode_modulesdirectory. It was previously[]and files innode_moduleswas always excluded regardless of the value ofexcludeoption.
reactandreact-domis no longer added toresolve.dedupeautomaticallyAdding values to
resolve.dedupeforces Vite to resolve them differently from how Node.js does, which can be confusing and may not be expected. This plugin no longer addsreactandreact-domtoresolve.dedupeautomatically.If you encounter errors after upgrading, check your package.json for version mismatches in
dependenciesordevDependencies, as well as your package manager’s configuration. If you prefer the previous behavior, you can manually addreactandreact-domtoresolve.dedupe.Remove old
babel-plugin-react-compilersupport that requiresruntimeModuleoption
... (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-oxcdid,@vitejs/plugin-react-oxcis now deprecated and thedisableOxcRecommendationoption is removed.Also, while
@vitejs/plugin-react-oxcused the production JSX transform even forNODE_ENV=developmentbuild,@vitejs/plugin-reactuses the development JSX transform forNODE_ENV=developmentbuild.Allow processing files in
node_modulesThe default value of
excludeoptions is now[/\/node_modules\//]to allow processing files innode_modulesdirectory. It was previously[]and files innode_moduleswas always excluded regardless of the value ofexcludeoption.
reactandreact-domis no longer added toresolve.dedupeautomaticallyAdding values to
resolve.dedupeforces Vite to resolve them differently from how Node.js does, which can be confusing and may not be expected. This plugin no longer addsreactandreact-domtoresolve.dedupeautomatically.If you encounter errors after upgrading, check your package.json for version mismatches in
dependenciesordevDependencies, as well as your package manager’s configuration. If you prefer the previous behavior, you can manually addreactandreact-domtoresolve.dedupe.Remove old
babel-plugin-react-compilersupport that requiresruntimeModuleoption
runtimeModuleoption is no longer needed in newerbabel-plugin-react-compilerversions. Make sure to use a newer version ofbabel-plugin-react-compilerthat supportstargetoption.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
9e4a944release: plugin-react@5.0.061d777dfix(deps): update all non-major dependencies (#670)7d3a57arelease: plugin-react@5.0.0-beta.09ffd86dfix(react): use development jsx transform forNODE_ENV=developmentbuild (#...133d786feat: mergeplugin-react-oxcintoplugin-react(#609)26326b3feat!: support including files in node_modules (#306)9ce3b22fix(deps): update all non-major dependencies (#593)cadd7d2fix!: removeresolve.dedupe(#586)005f16erefactor!: remove oldbabel-plugin-react-compilersupport (#584)b9efa3frefactor!: 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 rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill 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 versionwill 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 dependencywill 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
+80
-86
Package Dependencies
Technical Details
| ID: | 4902970 |
| UUID: | 2736199863 |
| Node ID: | PR_kwDOMhH8Ec6jFxi3 |
| Host: | GitHub |
| Repository: | labelzoom/labelzoom-cf-api-proxy |
| Merge State: | Unknown |