Everything you need to know about SWC
Find answers to common questions about SWC, the super-fast TypeScript/JavaScript compiler written in Rust.
SWC (Speedy Web Compiler) is a super-fast TypeScript/JavaScript compiler written in Rust. It's designed to be significantly faster than alternatives like Babel while maintaining compatibility and offering additional features. SWC provides both a Rust library and JavaScript bindings, making it accessible to both Rust and JavaScript developers.
Installation depends on your use case:
npm install @swc/coreswc = "version"npm install @swc/cliFor detailed installation instructions, visit our documentation.
SWC supports:
SWC offers several advantages over Babel:
For a detailed comparison, see our Babel migration guide.
Yes! SWC integrates with popular build tools:
@swc/webpack loader@rollup/plugin-swcvite-plugin-swccraco or eject to customizeSWC is significantly faster than JavaScript-based compilers:
For benchmark results, see our performance benchmarks.
The performance advantages come from several factors:
Yes! SWC is production-ready and used by many large-scale projects. It has been thoroughly tested and is:
Contributions are welcome! Here are several ways to help:
Start by reading our contributing guidelines.
Bugs and feature requests can be submitted through:
Please provide detailed information when reporting issues, including steps to reproduce, expected behavior, and actual behavior.
SWC is built with a modular architecture:
For detailed architecture information, see our architecture documentation.
There are several ways to get help:
swcYou can support SWC development through:
All sponsors are recognized on our website and GitHub repository.
SWC is primarily distributed under the Apache License 2.0, which is a permissive open-source license that allows:
For full license details, see the LICENSE file in the repository.