Vite 6: Environment API and Rolldown for 10x faster builds
Posted by Padma Devi · 2025-04-04
Vite 6 ships the Environment API for isomorphic code and previews Rolldown (Rust-based Rollup) for 10x faster production builds. The frontend tooling endgame is in sight. https://github.com/vitejs/vite/releases/tag/v6.0.0
// vite.config.ts — Vite 6 Environment API
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
export default defineConfig({
plugins: [react()],
environments: {
client: {
build: {
rollupOptions: {
output: { manualChunks: { vendor: ['react', 'react-dom'] } }
}
}
},
ssr: {
build: { ssr: true }
}
}
});