Switch from vite to rolldown-vite for improved build performance#9523
Merged
Switch from vite to rolldown-vite for improved build performance#9523
Conversation
- Add vite resolution to npm:rolldown-vite@latest in package.json - rolldown-vite is a drop-in replacement that uses Rust-based Rolldown bundler - Expected benefits: 3x-16x faster builds, up to 100x less memory usage - No configuration changes needed - rolldown-vite maintains full compatibility
- Change minify option from 'terser' to 'oxc' in vite.config.ts - Remove terserOptions since they're not needed with oxc minifier - Fix ESLint error by prefixing unused catch variable with underscore - Oxc is the high-performance Rust-based minifier used by rolldown-vite - Expected benefits: faster minification with better performance
- Add type assertion for minify: 'oxc' option which is supported by rolldown-vite but not in standard Vite types - Update comment for webpackStats plugin to reflect rolldown-vite compatibility - Resolves TypeScript compilation errors in CI
It has problematic CJS behavior that was fixed in 22
This was referenced Jul 17, 2025
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.
Overview
This PR switches from the standard
vitepackage torolldown-vite, a drop-in replacement that uses the Rust-based Rolldown bundler for significantly improved build performance.What is rolldown-vite?
rolldown-viteis a technical preview version of Vite that uses Rolldown - a Rust-powered JavaScript bundler - instead of the traditional esbuild/Rollup combination. It's being developed by VoidZero as the future bundler for Vite.Changes Made
"vite": "npm:rolldown-vite@latest"to theresolutionsfield inpackage.jsonReferences