Skip to content

Switch from vite to rolldown-vite for improved build performance#9523

Merged
tommoor merged 11 commits intomainfrom
codegen-bot/switch-to-rolldown-vite-1751404787
Jul 12, 2025
Merged

Switch from vite to rolldown-vite for improved build performance#9523
tommoor merged 11 commits intomainfrom
codegen-bot/switch-to-rolldown-vite-1751404787

Conversation

@codegen-sh
Copy link
Contributor

@codegen-sh codegen-sh bot commented Jul 1, 2025

Overview

This PR switches from the standard vite package to rolldown-vite, a drop-in replacement that uses the Rust-based Rolldown bundler for significantly improved build performance.

What is rolldown-vite?

rolldown-vite is 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

  • Added "vite": "npm:rolldown-vite@latest" to the resolutions field in package.json
  • This is a drop-in replacement - no configuration changes needed
  • All existing Vite scripts and configuration remain unchanged

References

- 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
@auto-assign auto-assign bot requested a review from tommoor July 1, 2025 21:20
codegen-sh bot added 2 commits July 1, 2025 22:52
- 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
@tommoor tommoor had a problem deploying to outline-app-staging July 6, 2025 21:53 Failure
@tommoor tommoor had a problem deploying to outline-app-staging July 6, 2025 22:08 Failure
@tommoor tommoor temporarily deployed to outline-app-staging July 6, 2025 22:13 Inactive
@tommoor tommoor had a problem deploying to outline-app-staging July 6, 2025 22:42 Failure
@tommoor tommoor had a problem deploying to outline-app-staging July 6, 2025 22:51 Failure
It has problematic CJS behavior that was fixed in 22
@tommoor tommoor temporarily deployed to outline-app-staging July 6, 2025 23:07 Inactive
@tommoor tommoor enabled auto-merge (squash) July 12, 2025 10:48
@tommoor tommoor merged commit 3c513b3 into main Jul 12, 2025
16 checks passed
@tommoor tommoor deleted the codegen-bot/switch-to-rolldown-vite-1751404787 branch July 12, 2025 10:52
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