OpenSource-Hub
S

SWC

SHA-256
33.7k stars·Developer Tools·SHA-256 checksum verified

SWC 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

compilertypescriptjavascriptrustbundlerminifier

Getting Started

1

Download installer

Click the button above to download the installer for your system

2

Install the software

Double-click the downloaded installer and follow the prompts

3

Ensure Node.js v10+ is installed, then run npm install @swc/core or yarn add @swc/core

4

Create a .swcrc configuration file to specify compilation options (e.g., target and module type)

5

Run npx swc src -d dist to compile code from src directory to dist

Install Guide
  1. Ensure Node.js v10+ is installed, then run npm install @swc/core or yarn add @swc/core
  2. Create a .swcrc configuration file to specify compilation options (e.g., target and module type)
  3. Run npx swc src -d dist to compile code from src directory to dist
File Integrity

SHA-256 checksum verified

Checksum extracted from GitHub official Release page

SHA256 Checksum

eae2d971a14db0cdc55df0b4dd6489cc7ebce69c696cb890098a2a613bb1c762

This 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 Source
Environment Guide

Uninstall 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.

Project Info
LicenseApache-2.0
Last Updated2026-06-14T06:58:29Z
GitHub RepositoryOfficial Website

Similar Projects