Rust-based platform for the Web: a super-fast TypeScript and JavaScript compiler
open sourceApache-2.0self-hostablefree
SWC is an extensible Rust-based platform for fast developer tools. It compiles JavaScript and TypeScript that uses modern features into code all major browsers support, and also minifies and bundles; its makers measure it at 20 times faster than Babel on one thread and 70 times faster on four cores. It is used by Next.js, Parcel and Deno, and by companies such as Vercel, ByteDance, Tencent and Shopify. It ships as prebuilt binaries for macOS, Linux (including Alpine and ARM), Android and Windows, installed from npm as @swc/core and @swc/cli, and plugs into webpack and Rspack through swc-loader and into Jest through @swc/jest. Custom plugins and transforms run as WebAssembly.
Problems it solves
- Babel is too slow to transpile my TypeScript and JavaScript
- speed up Jest tests that spend most of their time transforming TypeScript
- a faster loader than babel-loader for webpack or Rspack
- minify JavaScript quickly in my build
- write a custom code transform for my JavaScript build in Rust or WebAssembly
Features
- JavaScript and TypeScript compilation to browser-compatible code
- minification
- bundling
- transforms with WebAssembly plugins
- swc-loader for webpack and Rspack
- @swc/jest for faster Jest
- prebuilt binaries for macOS, Linux, Alpine, Android and Windows
- CLI
Capabilities
| Has an API | plan not known |
|---|---|
| Has a command line tool | plan not known |
| Takes plugins | plan not known |
| Has official SDKs | plan not known |
Alternatives
The same job
These do what SWC does.
