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

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

via Dev.to JavaScriptAlex Spinov

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 // 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 ], }, } Why Developers Switch from Webpack Webpack builds are slow and configs are complex: Drop-in replac

Continue reading on Dev.to JavaScript

Opens in a new tab

Read Full Article
2 views

Related Articles