SWC is a Rust-based platform for the web that is used for fast developer tools. It is a tool that takes any JavaScript or TypeScript code and outputs JavaScript that works on both modern and older browsers. SWC can be used for both compilation and bundling, and it is designed to be extensible. It is used by tools like Next.js, Parcel, and Deno, as well as companies like Vercel, ByteDance, Tencent, and Shopify. SWC is 20x faster than Babel on a single thread and 70x faster on four cores.
SWC can be downloaded and used as a pre-built binary, or built from source. Currently, the following binaries are provided:
- Mac (Apple Silicon)
- Mac (x64)
- Linux (x86_64)
- Linux (aarch64)
- Linux (armv7)
- Alpine Linux (also install @swc/core-linux-musl)
- Android (aarch64)
- Windows (win32-x64)
- Windows (ia32)
SWC is designed to be extensible, and currently, there is support for:
- Compilation
- Bundling (swcpack, under development)
- Minification
- Transforming with WebAssembly
- Usage inside webpack (swc-loader)
- Improving Jest performance (@swc/jest)
- Custom Plugins
SWC is a community-driven project and is maintained by a group of volunteers. If youd like to help support the future of the project, you can give developer time on the project or give funds by becoming a sponsor.