emitter

The last compiler phase, which writes the JavaScript output and optional declaration files from the checked syntax tree.

In more detail

Emitting removes type annotations and, for older targets, rewrites modern syntax into older equivalents. The emitted JavaScript is what actually runs. Emit happens even when there are type errors unless noEmitOnError or noEmit is set.

Related terms

Taught in

References