@rspack/core

v1.7.11 MIT

The fast Rust-based web bundler with webpack-compatible API

Weekly Downloads
3.5M
Stars
12.6K
Forks
782
Open Issues
183
Install Size
43.2 MB
Unpacked Size
1.5 MB
Last Updated
1mo ago

@rspack/core Download Trends

Download trends for @rspack/core04.7M9.5M14.2M18.9MFeb 2025MayAugNovFebApr 2026
@rspack/core

About @rspack/core

@rspack/core is a high-performance JavaScript and TypeScript bundler designed to replace existing build tools by leveraging Rust for significant speedups. It aims to solve the perennial problem of slow build times in modern web development, offering a familiar API for developers accustomed to webpack.

The core philosophy behind Rspack is to provide a fast, reliable, and scalable bundling solution. It is primarily built for developers who require rapid iteration cycles and efficient production builds without sacrificing compatibility with the existing webpack ecosystem. Rspack is developed by ByteDance and benefits from contributions aimed at optimizing the bundling process for large-scale applications.

Key API patterns in @rspack/core closely mirror webpack's configuration, including loaders, plugins, and the configuration object itself. This approach facilitates a smoother transition for users. Rspack exposes hooks and mechanisms for advanced customization, allowing developers to tap into the compilation pipeline for complex transformations and optimizations, much like its predecessor.

Integration points for @rspack/core are broad, fitting seamlessly into frameworks like React, Vue, and Angular. It is often used with build systems that require a powerful and fast bundler for modern JavaScript features like ESM, JSX, and TypeScript. Its compatibility means it can often be dropped into existing webpack-configured projects with minimal adjustments.

Performance is a major tenet of Rspack, with Rust-based compilation yielding significantly faster build and rebuild times compared to JavaScript-based bundlers. This translates to improved developer experience through quicker feedback loops during development. While it aims for broad compatibility, developers should test its output and performance characteristics against their specific project needs.

While Rspack strives for webpack compatibility, very complex or niche webpack configurations might require adjustments. Developers should be aware that community support, though growing, might be less extensive than for more established tools. Nonetheless, its rapid development and performance gains make it a compelling alternative for many projects.

When to use

  • When migrating from webpack and seeking substantial build speed improvements with minimal configuration changes
  • When building large-scale frontend applications that experience slow build times with existing bundlers
  • When developing with frameworks like React, Vue, or Angular that benefit from fast development server rebuilds
  • When leveraging modern JavaScript features such as ES Modules, JSX, and TypeScript, and requiring efficient compilation
  • When aiming to reduce CI/CD pipeline times through faster bundling processes
  • When contributing to or maintaining projects that demand a high-performance build toolchain

When NOT to use

  • If your project relies on very specific, obscure webpack plugins that have not yet been ported or have no Rspack equivalent
  • If you are working on extremely simple, non-modular JavaScript projects where a basic concatenation script suffices
  • When the primary concern is the absolute smallest possible bundle size for a minimal static asset build, and advanced optimization features are not critical
  • If your development environment or build process has strict limitations on adopting new tooling or a Rust-based dependency
  • When a mature, longer-established community with extensive historical troubleshooting resources is a non-negotiable requirement for development tooling

@rspack/core Alternatives

@rspack/core Categories