
Rspack Has a Free Webpack-Compatible Bundler — 10x Faster Builds
Your webpack builds take 30 seconds. Rspack does the same in 3. What is Rspack? Rspack is a high-performance bundler written in Rust, designed as a drop-in replacement for webpack. Same config format, same plugin API, same loader compatibility — just 5-10x faster. Built by the ByteDance web infra team (the company behind TikTok), Rspack now powers thousands of internal projects. Why Rspack Is Taking Over 1. Drop-In Webpack Replacement // rspack.config.js — looks exactly like webpack.config.js module . exports = { entry : ' ./src/index.tsx ' , module : { rules : [ { test : / \. tsx ? $/ , use : ' builtin:swc-loader ' , options : { jsc : { parser : { syntax : ' typescript ' , tsx : true } } } }, { test : / \. css$/ , type : ' css ' , } ] }, output : { filename : ' [name].[contenthash].js ' , path : ' ./dist ' } }; 2. Built-in SWC Loader No need for babel-loader + @babel/preset-env + @babel/preset-react + @babel/preset-typescript . Rspack includes SWC natively: { test : / \.[ jt ] sx ? $/
Continue reading on Dev.to JavaScript
Opens in a new tab



