SWC
SHA-256SWC is a super-fast TypeScript/JavaScript compiler built in Rust, offering blazing-fast transpilation and bundling for modern web development.
Smart Download
Download Download Version
v1.15.41 · 32.9 MB
A Rust-powered super-fast TypeScript/JavaScript compiler that is 20x faster than Babel, also bundling and minifying.
Core Features
- Lightning speed: Rust-based compilation 20x faster than Babel
- Full TypeScript & JavaScript transformation and minification
- Replaces Babel + Terser + part of Webpack in one tool
- Dual use: Rust library and Node.js package
- Active community with comprehensive documentation
What It Can't Do
- •Minimum Rust version 1.73 is required for building from source; older Rust toolchains may fail. 2. When using from Node.js, ensure @swc/core and @swc/helpers versions match exactly to avoid runtime errors. 3. Some Babel plugins (e.g., @babel/plugin-transform-runtime) need manual migration to SWC equivalents. 4. Not all Babel transformations are directly supported; complex custom transforms may require writing Rust plugins.
Use Cases
- Transpile modern JavaScript/TypeScript for older browsers
- Serve as the underlying compiler for frameworks like Next.js and Vite
Detailed Introduction
SWC (Speedy Web Compiler) is an open-source Rust-based platform for the web that compiles TypeScript and JavaScript at lightning speed. Unlike Babel, which is written in JavaScript and often slow for large codebases, SWC leverages Rust's zero-cost abstractions to achieve 20x faster transformation and 10x faster minification. It serves as both a Rust library and a Node.js package, replacing Babel, Terser, and part of Webpack in many workflows. With over 33k GitHub stars and active community support, SWC is production-ready for bundling, transpiling, and minifying web assets. It supports Node v10+ for usage and v20+ for development.
Tags
Getting Started
Download installer
Click the button above to download the installer for your system
Install the software
Double-click the downloaded installer and follow the prompts
Ensure Node.js v10+ is installed, then run npm install @swc/core or yarn add @swc/core
Create a .swcrc configuration file to specify compilation options (e.g., target and module type)
Run npx swc src -d dist to compile code from src directory to dist
- Ensure Node.js v10+ is installed, then run npm install @swc/core or yarn add @swc/core
- Create a .swcrc configuration file to specify compilation options (e.g., target and module type)
- Run npx swc src -d dist to compile code from src directory to dist
SHA-256 checksum verified
Checksum extracted from GitHub official Release page
SHA256 Checksum
eae2d971a14db0cdc55df0b4dd6489cc7ebce69c696cb890098a2a613bb1c762This checksum is extracted from the GitHub Release page. Verify file integrity after download.
All SHA-256 checksums on this platform are extracted from the project's official GitHub Release page, without any modification. You can independently verify them on the GitHub Releases page.
Open Source Transparency
View GitHub SourceUninstall Info
For npm installations, run npm uninstall @swc/core and related packages (e.g., @swc/helpers). For Rust dependencies, remove the swc crate entries from Cargo.toml.
No Extra Dependencies
Ready to use after download. No additional runtime required.
Similar Projects
Visual Studio Code (Code - OSS)
A free, open-source code editor by Microsoft with rich extensions, debugging, and Git integration. The most popular developer tool worldwide.
scrcpy
Display and control your Android device from your computer via USB or TCP/IP. No root required, high performance, low latency, supports audio and video mirroring.
godot
Godot Engine is a free, open-source, cross-platform 2D and 3D game engine with a unified editor. Unlike Unity or Unreal, it's entirely MIT-licensed and community-driven, offering a lightweight yet powerful node-based workflow that runs on a single executable.