Skip to content

Upgrade Vite 4→8 with Rolldown migration#18

Merged
acmeguy merged 1 commit intomasterfrom
feat/vite-8-upgrade
Mar 13, 2026
Merged

Upgrade Vite 4→8 with Rolldown migration#18
acmeguy merged 1 commit intomasterfrom
feat/vite-8-upgrade

Conversation

@acmeguy
Copy link

@acmeguy acmeguy commented Mar 13, 2026

Summary

  • Upgrades Vite from 4.4.9 to 8.0.0 and @vitejs/plugin-react from 4.2.1 to 5.2.0
  • Migrates manualChunks object to Rolldown's advancedChunks.groups API (fixes CI build failure where bunx fetched Vite 8 from npm but config used Vite 4 patterns)
  • Replaces vite-tsconfig-paths plugin with Vite 8's native resolve.tsconfigPaths
  • Fixes require.resolvecreateRequire for ESM compatibility
  • Uses ./node_modules/.bin/vite in build scripts and Dockerfile instead of bunx vite to prevent version mismatch

Test plan

  • vite build succeeds locally (2.2s, all chunks generated correctly including react-venders)
  • vite --host dev server starts successfully
  • ESLint + Prettier pass via lint-staged pre-commit hook
  • CI build passes on GitHub Actions

🤖 Generated with Claude Code

- vite ^4.4.9 → ^8.0.0, @vitejs/plugin-react ^4.2.1 → ^5.2.0
- Migrate manualChunks object to advancedChunks.groups (Rolldown API)
- Replace vite-tsconfig-paths plugin with native resolve.tsconfigPaths
- Fix require.resolve → createRequire for ESM compatibility
- Use ./node_modules/.bin/vite in build scripts and Dockerfile to avoid
  bunx fetching mismatched versions from npm registry

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@acmeguy acmeguy merged commit 1430bb0 into master Mar 13, 2026
@acmeguy acmeguy deleted the feat/vite-8-upgrade branch March 13, 2026 05:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants