chore(deps): upgrade vite to v8 and @vitejs/plugin-react to v6 - #346
Merged
Conversation
Vite 8 replaces Rollup with Rolldown as the bundler engine. This requires migrating build.rollupOptions to build.rolldownOptions and the removed object-form manualChunks to the new codeSplitting.groups API. Migrate vite.config.ts: - rollupOptions -> rolldownOptions - manualChunks object -> codeSplitting.groups with RegExp test patterns (vendor: react/react-dom/react-router, i18n: i18next packages) @vitejs/plugin-react@6 requires vite@^8 as peer dependency, so both upgrades must land together. Verified: npm run build succeeds (chunks: vendor 230KB, i18n 55KB), tsc --noEmit clean, 339/339 vitest tests passing.
jinglemansweep
force-pushed
the
chore/vite-8-plugin-react-6
branch
from
July 24, 2026 23:10
307215b to
1a4b58b
Compare
jinglemansweep
enabled auto-merge
July 24, 2026 23:12
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Upgrade Vite from v6 to v8 and
@vitejs/plugin-reactfrom v4 to v6. These two are mutually dependent (plugin-react@6 requiresvite@^8peer, and plugin-react@4 doesn't support vite@8) and must land together.Supersedes and closes #329 and #331.
Changes
Dependency bumps (
package.json,package-lock.json)vite:^6->^8.1.5(resolved: 8.1.5)@vitejs/plugin-react:^4->^6.0.4(resolved: 6.0.4)Vite config migration (
vite.config.ts)Vite 8 replaces Rollup with Rolldown as the bundler engine. Two breaking changes required config migration:
build.rollupOptions->build.rolldownOptions(rollupOptions is a deprecated alias)Object-form
manualChunksremoved -> migrated to Rolldown'scodeSplitting.groupsAPI:Why the Renovate PRs failed
ERESOLVE— plugin-react@6 requiresvite@^8peer dep, but project hadvite@^6EUSAGE— Renovate failed to regeneratepackage-lock.json("Artifact update problem"), and plugin-react@4 doesn't support vite@8Build output
Chunks produced by the new codeSplitting config:
vendor: 230 KB (react, react-dom, react-router)i18n: 55 KB (i18next, react-i18next, i18next-browser-languagedetector)Verification
npm run build— succeeds (Tailwind + Vite/Rolldown)npx tsc --noEmit— cleannpm run test:frontend(vitest) — 339/339 passingpre-commit run --all-files— all green