DEV Community

Alex Spinov
Alex Spinov

Posted on

Rspack Has a Free JavaScript Bundler — Webpack-Compatible but 10x Faster

Rspack is a Rust-based JavaScript bundler fully compatible with webpack — use your existing webpack config, get 10x faster builds.

What You Get for Free

  • Webpack compatible — most webpack plugins and loaders work
  • 10x faster — Rust core vs webpack's JavaScript
  • HMR — hot module replacement in <200ms
  • Code splitting — automatic chunk optimization
  • Tree shaking — dead code elimination
  • CSS — built-in CSS processing (no mini-css-extract-plugin)
  • TypeScript — built-in transpilation (no ts-loader)
  • Module Federation — micro-frontend support

Quick Start

npm install -D @rspack/core @rspack/cli
Enter fullscreen mode Exit fullscreen mode
// rspack.config.js — looks exactly like webpack.config.js
module.exports = {
  entry: './src/index.js',
  output: { filename: 'bundle.js' },
  module: {
    rules: [
      { test: /\.css$/, type: 'css' },  // built-in, no loader needed
      { test: /\.tsx?$/, use: 'builtin:swc-loader' },  // built-in
    ],
  },
}
Enter fullscreen mode Exit fullscreen mode

Why Developers Switch from Webpack

Webpack builds are slow and configs are complex:

  • Drop-in replacement — same config format, most plugins work
  • 10x faster builds — 30 second builds → 3 seconds
  • Built-in features — CSS, TypeScript, minification included
  • Same ecosystem — use existing webpack knowledge

A React app's webpack build took 120 seconds. After replacing webpack with @rspack/core in config: 12 seconds, same output, same plugins. Zero code changes.

Need Custom Data Solutions?

I build production-grade scrapers and data pipelines for startups, agencies, and research teams.

Browse 88+ ready-made scrapers on Apify → — Reddit, HN, LinkedIn, Google, Amazon, and more.

Custom project? Email me: spinov001@gmail.com — fast turnaround, fair pricing.

Top comments (0)