Update dependency @vitejs/plugin-react to v6#622
Conversation
Generated by renovateBot
4e411bb to
a25405d
Compare
| "@types/react": "^19.2.14", | ||
| "@types/react-dom": "^19.2.3", | ||
| "@vitejs/plugin-react": "^4.7.0", | ||
| "@vitejs/plugin-react": "^6.0.0", |
There was a problem hiding this comment.
🔴 Peer dependency mismatch: @vitejs/plugin-react@6 requires vite ^8.0.0 but project uses vite ^6.4.1
The @vitejs/plugin-react was bumped from ^4.7.0 to ^6.0.0, which resolves to v6.0.1. However, this version declares a peer dependency of vite: ^8.0.0 (visible in the pnpm-lock.yaml), while the project's package.json:30 still specifies vite: ^6.4.1 (resolved to 6.4.2). This peer dependency mismatch means the plugin is not tested or guaranteed to work with vite 6, and could cause build failures or subtle runtime issues. The vite dependency should also be bumped to ^8.0.0 to match, or @vitejs/plugin-react should be kept at a version compatible with vite 6.
Prompt for agents
The @vitejs/plugin-react was bumped from ^4.7.0 to ^6.0.0, but @vitejs/plugin-react@6.x declares a peer dependency of vite: ^8.0.0. The project still uses vite: ^6.4.1 on line 30 of package.json. Either:
1. Also bump vite to ^8.0.0 (and verify all other vite plugins like vite-plugin-singlefile are compatible with vite 8), OR
2. Keep @vitejs/plugin-react at a version compatible with vite 6 (e.g., ^4.7.0 or whichever major version supports vite 6).
The pnpm-lock.yaml confirms the mismatch: @vitejs/plugin-react@6.0.1 lists peerDependencies vite: ^8.0.0 but resolves with vite@6.4.2.
Was this helpful? React with 👍 or 👎 to provide feedback.
This PR contains the following updates:
^4.7.0→^6.0.0Warning
Some dependencies could not be looked up. Check the Dependency Dashboard for more information.
Release Notes
vitejs/vite-plugin-react (@vitejs/plugin-react)
v6.0.1Compare Source
Expand
@rolldown/plugin-babelpeer dep range (#1146)Expanded
@rolldown/plugin-babelpeer dep range to include^0.2.0.v6.0.0Compare Source
v5.2.0Compare Source
v5.1.4Compare Source
Fix
canSkipBabelnot accounting forbabel.overrides(#1098)When configuring
babel.overrideswithout top-level plugins or presets, Babel was incorrectly skipped. ThecanSkipBabelfunction now checks foroverrides.lengthto ensure override configurations are processed.v5.1.3Compare Source
v5.1.2Compare Source
v5.1.1Compare Source
Update code to support newer
rolldown-vite(#976)rolldown-vitewill removeoptimizeDeps.rollupOptionsin favor ofoptimizeDeps.rolldownOptionssoon. This plugin now usesoptimizeDeps.rolldownOptionsto support newerrolldown-vite. Please updaterolldown-viteto the latest version if you are using an older version.v5.1.0Compare Source
Add
@vitejs/plugin-react/preamblevirtual module for SSR HMR (#890)SSR applications can now initialize HMR runtime by importing
@vitejs/plugin-react/preambleat the top of their client entry instead of manually callingtransformIndexHtml. This simplifies SSR setup for applications that don't use thetransformIndexHtmlAPI.Fix raw Rolldown support for Rolldown 1.0.0-beta.44+ (#930)
Rolldown 1.0.0-beta.44+ removed the top-level
jsxoption in favor oftransform.jsx. This plugin now uses thetransform.jsxoption to support Rolldown 1.0.0-beta.44+.v5.0.4Compare Source
Perf: use native refresh wrapper plugin in rolldown-vite (#881)
v5.0.3Compare Source
HMR did not work for components imported with queries with rolldown-vite (#872)
Perf: simplify refresh wrapper generation (#835)
v5.0.2Compare Source
Skip transform hook completely in rolldown-vite in dev if possible (#783)
v5.0.1Compare Source
Set
optimizeDeps.rollupOptions.transform.jsxinstead ofoptimizeDeps.rollupOptions.jsxfor rolldown-vite (#735)optimizeDeps.rollupOptions.jsxis going to be deprecated in favor ofoptimizeDeps.rollupOptions.transform.jsx.Perf: skip
babel-plugin-react-compilerif code has no"use memo"when{ compilationMode: "annotation" }(#734)Respect tsconfig
jsxImportSource(#726)Fix
reactRefreshHostoption on rolldown-vite (#716)Fix
RefreshRuntimebeing injected twice for class components on rolldown-vite (#708)Skip
babel-plugin-react-compileron non client environment (689)v5.0.0Compare Source
Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.