SWC is a Rust-based platform for the web that provides an extremely fast JavaScript and TypeScript compiler, bundler, and minifier. Designed as a drop-in replacement for Babel, SWC compiles modern ECMAScript syntax, JSX, and TypeScript to browser-compatible JavaScript up to 20 times faster by leveraging Rust native performance, parallel processing, and minimal memory allocation overhead.
The compiler supports the full spectrum of JavaScript transformations including ES2015+ syntax downleveling, JSX and React refresh transforms, TypeScript type stripping, CommonJS and ES module interop, and decorator proposals. SWC also provides a built-in minifier competitive with Terser and an experimental bundler. Its plugin system using WebAssembly allows custom transforms without sacrificing compilation speed.
SWC has become critical infrastructure in the JavaScript ecosystem with over 33,000 GitHub stars and adoption by major frameworks and tools. Next.js switched from Babel to SWC for its default compiler, Parcel uses SWC as its JavaScript transformer, and Deno embeds SWC for TypeScript support. The project also underpins newer tools like Turbopack and Rspack that build on its proven compilation architecture.