PACKAGE · BUNDLER

@rspack/core

Fast Rust-based bundler for the web with a modernized webpack API

WEEKLY DOWNLOADS 7.0M
STARS 12.8K
FORKS 835
OPEN ISSUES 282
GZIP SIZE 106.7 kB
UNPACKED SIZE 1.7 MB
DEPENDENCIES 1
LAST UPDATED 5mo ago
DOWNLOAD TRENDS

@rspack/core downloads — last 12 months

Download trends for @rspack/core1 download series from Aug 2025 to Jul 2026. Use left and right arrow keys to inspect monthly values.08.6M17.2M25.8M34.4MAug 2025NovFebMayJul 2026
@rspack/core
ABOUT @RSPACK/CORE

@rspack/core is a high-performance JavaScript bundler designed to accelerate web development build processes. It addresses the growing complexity of modern web applications by offering a fast, Rust-based engine that leverages a modernized webpack API, making it easier for developers familiar with webpack to adopt.

The core philosophy behind Rspack is speed and compatibility. It aims to provide a significantly faster alternative to existing bundlers by executing critical build tasks in Rust, while maintaining a high degree of compatibility with the webpack ecosystem. This makes it suitable for a wide range of developers, from individual contributors to large teams working on complex projects.

Rspack's API closely mirrors that of webpack, allowing developers to reuse existing configurations and plugins. Key patterns include its robust plugin system, loaders for transforming various asset types, and its ability to handle complex module graph resolutions, mirroring familiar webpack concepts like `resolve` and `module.rules`.

Integration with popular frontend frameworks and build tools is a key strength. Rspack provides out-of-the-box support or easy integration paths for frameworks like React and Vue, and can be adopted within existing Node.js project structures. Its compatibility with webpack configurations significantly lowers the barrier to entry for migrating existing projects.

Performance is a primary benefit, with Rspack boasting extremely fast build times due to its Rust core. While it offers excellent speed, developers should consider that the unpacked size is 1.7 MB and the gzipped bundle size is 106.7 kB, which might be a factor for extremely constrained environments compared to simpler tools.

Despite its compatibility, developers should be aware that while the API is modernized, subtle differences from webpack might exist, requiring minor adjustments in some edge cases. The project is actively developed, indicated by recent updates and a significant number of GitHub stars (12.8K) and forks (830), but also shows a notable number of open issues (271), suggesting ongoing refinement.

WHEN TO USE
  • When migrating from webpack and seeking significant build performance improvements without a complete rewrite of configurations.
  • When developing large-scale applications that suffer from long compilation times with traditional bundlers.
  • When working with complex module structures, including multiple dynamic imports and code splitting scenarios.
  • For projects utilizing modern JavaScript features like ESM, JSX, and TypeScript, demanding efficient compilation and bundling.
  • When integrating with frameworks that have established Rspack support or compatibility layers for optimized tooling.
  • For projects prioritizing fast iterative development cycles, where quick feedback after code changes is critical.
WHEN NOT TO USE
  • If your project only requires basic asset concatenation and minification, a simpler, standalone tool might suffice.
  • If you depend on specific webpack plugins that have not yet been ported or replicated in the Rspack ecosystem.
  • When absolute maximum control over every aspect of the build process is required and the Rspack API patterns don't align.
  • For learning purposes if a deep understanding of webpack's original architecture is the primary goal, rather than immediate performance gains.
  • If your deployment target has extremely strict size constraints where even a moderately sized bundler is prohibitive.

CORRECTIONS

Spot wrong data here?

A short note helps us fix it.

Anonymous · No account · No email back

COMPARISONS 5
@rspack/core vs parcel ★ 44.0K · 342.4K/wk @rspack/core vs rollup ★ 26.3K · 103.7M/wk @rspack/core vs esbuild ★ 40.0K · 216.6M/wk @rspack/core vs webpack ★ 65.9K · 46.1M/wk @rspack/core vs vite ★ 82.2K · 134.8M/wk