高速バンドラーRolldown、ついに1.0へ
Rolldown 1.0 安JavaScriptバンドラーRolldownが1.0になり、安定版としてリリースされました。
Rustベースで高速かつRollupのプラグインAPI互換を持ち、Vite 8の基盤技術となっています。
既存のRCからの移行も容易で、パフォーマンス向上や機能改善が期待されます。
特に、esbuild並みの高速性とViteユーザーへの恩恵が注目です。
JavaScriptのバンドラー「Rolldown」が、ついにバージョン1.0をリリースしました。Rolldownは、高速性、Rollupプラグインとの互換性、そして独自の機能を備えたバンドラーとして、特にVite 8を動かすための基盤技術として注目されています。今回のリリースは、開発者にとって既存のコードを変更せずにアップグレードできる、安定版として利用できるようになったことを意味します。
Viteの基盤技術としてのRolldown
Rolldownは、JavaScriptのモジュールを効率的にまとめてブラウザで実行可能なファイルにする「バンドラー」の一種です。特に注目されているのは、人気のあるJavaScriptフレームワーク「Vite」のバンドラーとして採用されている点です。Viteは、開発の効率化のために複数のバンドラーを組み合わせて使用していましたが、Rolldownの登場により、その構成を簡素化し、パフォーマンスを向上させることが可能になったとのことです。Rolldownは、esbuildという高速なバンドラーと、Rollupというプラグインエコシステムが充実したバンドラーの良さを取り入れ、独自の機能も追加することで、Viteの進化を加速させています。
高速性とプラグイン互換性
Rolldownの大きな特徴は、その高速性です。Rollupと比較すると、ビルド速度が10倍から30倍速いという結果が出ており、esbuildと同等のパフォーマンスを発揮します。この高速性は、Rustというプログラミング言語で記述され、Oxcという技術を活用することで実現されています。また、既存のRollupプラグインとの互換性も高く、Viteを利用している多くの開発者は、既存のプラグインをそのまま利用することができます。Rolldownは、プラグインの処理速度を向上させるための仕組みも導入しており、プラグインを追加してもビルド速度が遅延しにくいとのことです。
今後の展望とViteへの影響
Rolldown 1.0のリリースは、Viteユーザーにとって大きなメリットをもたらします。Rolldownの改善は、Viteのパフォーマンス向上に直接つながり、開発体験をより快適にするでしょう。また、Rolldownは、FramerやPLAIDといった企業でもすでに実用段階で利用されており、その信頼性も裏付けられています。今後は、Rolldownの機能がさらに進化し、より小さなファイルサイズと高速なビルドを実現していくことが期待されます。Vite 8を既に利用している開発者はもちろん、新しいJavaScriptプロジェクトを始める際にも、Rolldownを検討する価値があるでしょう。
まとめ
Rolldown 1.0のリリースは、JavaScriptバンドラーの世界における重要なマイルストーンと言えるでしょう。Viteとの連携を通じて、より多くの開発者にその恩恵がもたらされることが期待されます。今後もRolldownの進化から目が離せません。
原文の冒頭を表示(英語・3段落のみ)
TL;DR: Rolldown, the high-performance Bundler for JavaScript, reached 1.0 stable and production readiness. It features speed, Rollup plugin compatibility, and unique bundler features. Upgrading from the latest RC does not need any code changes.Rolldown reaches 1.0 Rolldown is a Rust-based high-performance JavaScript bundler. It can be used standalone and is powering Vite since its latest major version Vite 8. Now Rolldown itself hits the 1.0 stable milestone.Rolldown adheres to semantic versioning meaing the ^1.0.0 API is now locked:Option names, types, and plugin hook signatures stay backward-compatible.No planned breaking changes to Rolldown's public API.Except for features marked experimental.Output behavior may still changeOutput behavior like Dead Code Elimination, chunking, and inlining heuristics will keep improving, and option defaults may shift to deliver smaller and faster bundles. This does NOT change the runtime behavior of the output. Behavioral changes are noted in release notes.Built with Vite in mind One of Rolldown's main goals was to unify Vite's original 2-bundler setup. The previous configuration worked, but it meant two transformation pipelines, two plugin systems, and a growing layer of glue code. It also limited Vite's future capabilities.Rolldown solved this as a bundler by combining the best parts of existing bundlers. esbuild's speed and Rollup's plugin API. In addition, the bundler provides features neither had. (More on this below)Swapping Vite's bundler was a 2 year journey. How we got here:April 2024: First public 0.10.1 release.December 2024: 1.0.0-beta.1, scoping the eventual 1.0 surface area.May 2025: rolldown-vite, a temporary package, shipped as a technical preview to prepare for the swap and gather feedback from the community.December 2025: Vite 8 beta shipped with Rolldown as the default bundler.January 2026: Rolldown 1.0 RC marked API stability.March 2026: Vite 8 stable shipped, making Rolldown the underlying bundler for every Vite user.May 2026: Rolldown 1.0 stable.Vite 8 is now Rolldown's main entry point. Meaning new Rolldown features and improvements directly benefit Vite users.Why switch to Rolldown Rolldown is a native bundler that combines speed and flexibility through it's plugin API. On top of that, it has unique features that improve the bundling experience and output quality.esbuild-like speedRollup plugin-compatibilityAdditional bundler featuresCompanies like Framer and PLAID are already using Rolldown in production.esbuild-like speed Rolldown is 10x-30x faster than Rollup (the gap widens as project size grows) and on par with esbuild. Performance is a feature. Rolldown is written in Rust and leverages Oxc to handle the language work like parsing and minification.Highlights:Ramp reduced their build time by 57%Mercedes-Benz.io cut their build time down by up to 38%Beehiiv reduced their build time by 64%Full benchmarks: rolldown/benchmarks.Rollup plugin-compatibility Rolldown needed a Rollup-compatible plugin API to be a drop-in replacement for Vite. Otherwise, developers would have to make massive code changes to migrate to the latest Vite, which is a terrible experience. It also ensures users can continue using their existing plugins. Most Vite plugins work out of the box on Vite 8.With Rolldown being written in native Rust, there was performance improvement opportunities in the plugin API too:Hook filters keep JavaScript plugins out of the hot path. Plugins that declare an id, code, or moduleType filter skip the Rust-to-JS hop when the filter doesn't match, so adding plugins doesn't linearly slow your build. For plugins that don't ship filters yet, withFilter wraps them on the consumer side.Built-in plugins replace common Rollup-ecosystem dependencies in Rust. replacePlugin and esmExternalRequirePlugin drop into existing configs without the JavaScript hop.The Plugin API reference covers the full API surface.Additional bundler features Smaller default bundles. Aggressive dead code elimination with @__PURE__, @__NO_SIDE_EFFECTS__, and sideEffects controls; smart constant and TypeScript const enum inlining; and DCE-only minification that strips dead code without mangling identifiers.More chunking control. Granular code splitting with webpack-style chunk rules, the same feature behind Framer's 67% chunk reduction.For the full list, see Notable Features.Using Rolldown Standalone vpnpmpnpmyarnbunsh$ vp add -D rolldownsh$ npm install -D rolldownsh$ pnpm add -D rolldownsh$ yarn add -D rolldownsh$ bun add -D rolldownjsimport { defineConfig } from 'rolldown'
export default defineConfig({
input: 'src/main.ts',
※ 著作権に配慮し、引用は冒頭3段落までです。続きは元記事をご覧ください。