Frontend · Tool

SWC and Babel

Tools that translate modern JavaScript, TypeScript and JSX into plain JavaScript that every target browser can run. Babel is the long-standing JavaScript version; SWC does the same job in Rust, much faster.

Build tools · updated

How it works

Browsers do not understand TypeScript or JSX, and older ones miss newer syntax. A transpiler parses the source, transforms it and prints ordinary JavaScript, usually with a source map so that errors point back at the original code. Babel, around since 2014, did this for most of the JavaScript world and has a huge plugin system.

SWC (Speedy Web Compiler) is written in Rust and is many times faster, so Next.js, Deno and Rspack build on it. esbuild and Oxc play a similar role elsewhere. Babel is still common where a particular plugin is needed; the React Compiler, for example, ships as a Babel plugin.

More in Frontend

Build tools

All 26 Frontend terms

Crafted in the dark. Shipped to the world.

Tell us what you are building. You get a private project space with a proposal and a line-by-line quote within a day.