Rspack 2.0, ByteDance's Rust-based JavaScript bundler, has been released, featuring performance enhancements and reduced dependencies. This version offers a pure ESM core, support for React Server Components, and requires Node.js 20.19+.
ByteDance has launched Rspack 2.0, enhancing its Rust-based JavaScript bundler with various updates aimed at performance and usability. This release marks a significant evolution for the tool, reflecting its rapid uptake among developers, with weekly npm downloads soaring from around 100,000 to over 5 million.
Rspack 2.0 boasts a build performance improvement of approximately 10% over version 1.7 and up to 100% faster than version 1.0. On a 10,000 component React project, production builds with persistent cache now complete in 1.4 seconds, down from 5.6 seconds. Hot module replacement time has improved to 118 milliseconds, highlighting Rspack's efficiency.
One of the standout features of Rspack 2.0 is the significant reduction in dependencies. The @rspack/dev-server package saw a drop from 192 dependencies to just 1, with its size decreasing from 15 MB to 1.4 MB. This change signals a shift in development philosophy and improves supply chain security.
The new version transitions to a pure ESM core, eliminating the CommonJS build. This aligns with Node.js's evolving capabilities, allowing most existing projects to require ESM without changes. Rspack 2.0 integrates support for import.meta and the stage-3 import defer proposal, enhancing module handling and tree shaking effectiveness.
Developers need to update to Node.js versions 20.19 or 22.12, as support for Node.js 18 has been dropped. Important packages such as @rspack/core and @rspack/plugin-react-refresh should also be updated to version 2.0.0 or beyond. Critical fixes for the 1.x line will continue for a time, but new developments will focus on 2.0.
✨ This summary was generated by AI from the outlets' reporting listed below. It is not independently verified and may contain errors — check the original sources. How BrevFeed works →
One email each morning: the day's tech stories, clustered across outlets and summarized. No account needed.
One email a day. Unsubscribe in one click, any time.
Spend a few minutes, get the whole day. Every topic's top stories in one hands-free rundown — listen, watch, or read the transcript.
▶ Play today's briefNew every morning, and the back catalogue is archived by date.
Rspack 2.0, ByteDance's Rust-based JavaScript bundler, has been released, featuring performance enhancements and reduced dependencies. This version offers a pure ESM core, support for React Server Components, and requires Node.js 20.19+.