Skip to content
Home / Migrations / WebpackRspack

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.