Notes on Vite 8 and Rolldown
AI-assisted
- vite
- rolldown
- build-tools
Vite 8 ships Rolldown as the bundler. Mostly a drop-in, but two things bit:
manualChunks is a function now
The object form of build.rollupOptions.output.manualChunks is gone. Use the
function form instead:
manualChunks(id) {
if (id.includes('node_modules/three')) return 'three'
if (id.includes('@react-three')) return 'r3f'
}
optimizeDeps.esbuildOptions removed
Deprecated under Rolldown — drop it. Otherwise the upgrade from Vite 7 was uneventful, and build times dropped noticeably.