SWC
github.com
3
Leaving SiteNav
External Link Disclaimer
You are about to visit github.com. This website is not operated by us. We are not responsible for its content or privacy practices.
About this website
SWC is an extensible Rust-based platform for the next generation of fast developer tooling, capable of both compilation and bundling of JavaScript and TypeScript. On a single thread, SWC is 20 times faster than Babel for transpilation, and on four cores it is 70 times faster, making it the fastest TypeScript and JavaScript transformer available. The platform handles ECMAScript transpilation from modern syntax to browser-compatible output, TypeScript type stripping, JSX transformation, minification, and tree shaking. SWC is used as the underlying compiler by Next.js for all development and production builds, by Parcel for transpilation, and by Deno for TypeScript compilation. Companies relying on SWC in production include Vercel, ByteDance, Tencent, Shopify, Trip.com, and many more. The toolchain provides swc-loader for webpack and Rspack integration, at-swc/jest as a drop-in replacement for ts-jest that dramatically speeds up test execution, at-swc/core as the programmatic Node.js binding, and standalone pre-built binaries for macOS, Linux, and Windows. Custom plugins written in Rust can hook into any transformation stage through the visitor pattern. WebAssembly compilation enables browser-side transformations without a server. The swcpk CDN serves pre-compiled npm packages powered by SWC. Created by Kang Dong Yoon in 2017. Funded through OpenCollective and GitHub Sponsors. Open source under the Apache 2.0 license with over 34,100 GitHub stars.
Statistics
3
Views
0
Clicks
0
Like
0
Dislike