transpilation

Translating source code into equivalent code in another form of the same language level, such as turning JSX into plain JavaScript.

In more detail

A tool reads source files at build time and writes out code the target environment can run, for example removing TypeScript types or rewriting new syntax for older browsers. Babel, the TypeScript compiler and bundler plugins all transpile.

Example

For React this mainly means replacing every JSX tag with a call to the jsx function.

Related terms

Taught in

References