swc
Installation
SKILL.md
SWC
SWC (Speedy Web Compiler) is a Rust-based extensible platform. It is the compiler inside Next.js and Deno.
When to Use
- High-Performance JavaScript/TypeScript Transpilation: Replacing Babel with a Rust-based compiler up to 20x faster.
- Next.js & Modern Bundler Pipelines: Transpiling React JSX, TSX, modern ECMAScript features, and Webpack/Turbopack assets.
- Programmatic AST Manipulation & Code Generation: Building fast custom build tools using the
@swc/coreNode.js API. - Production Asset Minification: Minifying JS and CSS bundles at extreme speeds using
@swc/coreminifier.