Rust-based platform for the Web
Make the web (development) faster.
SWC (stands for `Speedy Web Compiler`) is a super-fast TypeScript / JavaScript compiler written in Rust. It's a library for Rust and JavaScript at the same time. If you are using SWC from Rust, see [rustdoc](https://rustdoc.swc.rs/swc/) and for most users, your entry point for using the library will be [parser](https://rustdoc.swc.rs/swc_ecma_parser/). Also, SWC tries to ensure that > If you select the latest version of each crates, it will work for rust users. MSRV of crates is currently `1.73`. To update all SWC crates you use, you can run `curl https://raw.githubusercontent.com/swc-project/swc/main/scripts/update-all-swc-crates.sh | bash -s`. This script will update all dependencies to the latest version and run `cargo build` to ensure that everything works. Note that you need - `jq` - `cargo upgrade` command to run the script. Supported Node Versions: - Node v10+ for usage - Node v20+ for development --- If you are using SWC from JavaScript, please refer to [docs on the website](https://swc.rs/docs/installation/). # Documentation Check out the documentation [in the website](https://swc.rs/docs/installation/). # Features Please see [comparison with babel](https://swc.rs/docs/migrating-from-babel). # Performance Please see [benchmark results](https://swc.rs/docs/benchmark-transform) on the website. # Supporting development@swc/core 1.16: native addon cache validation rejects ordinary Windows directories, so require('@swc/core') throws
es/minifier: shadowed `undefined` parameter renamed to `undefined1`, leaving an undeclared reference
for...of transformation mess up repeated JS labels
for await...of loops transformation lost JS labels
Legacy decorators: the generated `_ts_decorate(...)` calls have no source map mappings
Private method call in an update expression (`this.#m().n++`) compiles to field helper → `privateMap.get is not a function`
reactCompiler: stack overflow on long call chains; fast_check::is_required unused by transform
Flow parser: component parameter that is both renamed and optional (`foo as bar?: T`) fails to parse
Minifier emits `if (…) async function` for #8953 input again
`@swc/html` parser drops customizable-select markup (`<button>`, `<selectedcontent>`, rich `<option>` content)