downleveling

Rewriting modern JavaScript syntax into older, equivalent syntax so the code runs on an older target.

In more detail

Compiling optional chaining for ES5 turns a?.b into a longer check against null and undefined, and some features add helper functions to the output. Modern targets keep the syntax as written, so the output is smaller and closer to your source.

Related terms

Taught in

References