Skip to content
Home / Migrations / Webpack → Rspack

Webpack → Rspack

easy

Rspack is a Webpack-compatible bundler written in Rust. 5-10x faster builds. Most Webpack plugins and loaders work without changes. Drop-in replacement for many projects.

Estimated: 1-3h · 5 steps
Progress0%
Step 1: Install Rspack
npm install -D @rspack/core @rspack/cli
Step 2: Rename config

webpack.config.js → rspack.config.js. Most config options are identical. Some plugins need Rspack equivalents.

Step 3: Replace Webpack plugins

html-webpack-plugin → @rspack/plugin-html. MiniCssExtractPlugin → built-in rspack.CssExtractRspackPlugin.

Step 4: Update scripts

webpack → rspack, webpack-dev-server → @rspack/dev-server in package.json scripts.

Step 5: Test build
✓ Build output matches Webpack output. Dev server starts. HMR works. Bundle size is similar.

What this migration involves

Moving from Webpack to Rspack is rated easy and takes about 1-3h on a typical project. The guide breaks it into 5 steps, 1 of which ship with runnable commands and 1 with a verification check.

FAQ

How long does migrating from Webpack to Rspack take?

Around 1-3h for a typical project — 5 steps, difficulty rated easy, 1 of them with copy-paste commands.

Is moving from Webpack to Rspack reversible?

No reverse guide is tracked yet, so treat this as a one-way move and keep a full export of your Webpack data before you start.

What does Rspack cost compared to Webpack?

Pricing for both tools is contact-based or not tracked yet.