Skip to content

Rspack

A fast Rust-based web bundler that aims to be a drop-in replacement for webpack.

Stars
13k
Forks
877
Licence
MIT
Language
Rust
Last update
4 days ago
Type
Dev tool

What it is

Rspack is a tool that takes your JavaScript, TypeScript and other web source files and bundles them into files a browser can load. It is written in Rust for speed and uses a modernized version of the webpack API, so projects already built on webpack can be moved over with less rework. The README says it supports webpack plugins and loaders, Module Federation, and built-in production optimizations such as tree shaking and minification.

  • Bundle a web application's JavaScript and TypeScript into optimized files for production
  • Run a development server with fast hot module replacement while editing code
  • Use Module Federation to share code between separately deployed web apps
  • Reuse existing webpack plugins and loaders in a new build setup

Great for

  • Teams with a large webpack project who want faster builds without rewriting their config
  • Developers who want fast dev-server startup and hot module replacement on big codebases
  • Projects that rely on webpack plugins or loaders and need compatibility
  • Teams building micro-frontends that use Module Federation

Not ideal for

  • People who only need a simple static page; a lighter tool may be enough, and the README does not compare simplicity against alternatives
  • Non-developers, since it is a build tool that assumes familiarity with JavaScript project setup
  • Projects that need a feature the README does not mention; check the docs for compatibility details first
Step-by-step guide: how to use RspackInstall, first run, examples, tips and FAQs

How to get it

  1. 1

    Install with a package manager

    You'll need: Node.js (the README badge references Node versions but the minimum is not stated in the provided text)

    Clone the repository

    git clone https://github.com/web-infra-dev/rspack
  2. 2

    Run it

    • Follow the Quick start guide at https://rspack.rs/guide/start/quick-start
    • Install the @rspack/core package from npm in your project
    • Add or adapt a configuration file for your project
    • Run your build through Rspack and check the output
  3. 3

    Get the most out of it

    • Use the Rsbuild build tool from the same Rstack family for a higher-level setup, as listed in the README
    • Use Rsdoctor, listed in the README as a build analyzer, to inspect build output
    • Read the Rspack 2.x docs at rspack.rs for configuration and migration details
    • Join the Discord community linked in the README to ask questions

Downloads

Strengths

  • The README states builds are fast, with incremental compilation supporting hot module replacement
  • Compatible with the webpack plugin and loader ecosystem, which eases migration
  • Part of the broader Rstack toolchain (Rsbuild, Rspress, Rstest, and others) listed in the README

Trade-offs

  • The README is truncated and does not give enough detail on which webpack features are fully supported
  • Migration effort depends on how heavily a project uses custom webpack plugins; the README does not quantify this
  • Speed claims are not backed by numbers in the README; it points to external benchmark pages instead

How it compares

ProjectStarsTypeLevelUpdatedBest for
rspack (this)13kDev toolintermediate4 days agoTeams with a large webpack project who want faster builds without rewriting their config
webpack66kDev toolintermediate4 days agoFrontend developers building single-page or multi-page web apps
vite83.7kDev toolintermediate4 days agoFrontend developers starting a new modern web project
esbuild40.1kDev toolintermediate3 months agoDevelopers who want fast builds for JavaScript, TypeScript, or CSS projects
parcel44kDev toolbeginner4 days agoWeb developers who want a bundler that works without a config file
angular101kFrameworkintermediate5 days agoDevelopers building larger, multi-screen web applications

Stats synced from GitHub. The assessment above was drafted with AI from the project's README on 2026-10-29 and may miss recent changes — check the README before relying on a command. MIT licence: free to use, modify and distribute, including commercially, as long as you keep the copyright notice.