SWC
A fast TypeScript and JavaScript compiler written in Rust, used by tools such as Next.js to transpile code.
In more detail
SWC stands for Speedy Web Compiler. Like esbuild it transpiles one file at a time without type checking, so type-only imports must be marked explicitly.
Related terms
- transpiler — A tool that translates source code into another language at a similar level, such as TypeScript into plain JavaScript.
- esbuild — A very fast JavaScript and TypeScript bundler and transpiler written in Go.
- single-file transpilation — Compiling each file on its own without looking at the rest of the project, which is fast but cannot use type information.
Taught in
- ECMAScript Modules, CJS Interop And verbatimModuleSyntax — Production TypeScript