Babel (transcompiler)

It allows web developers to take advantage of the newest features of the language.

[4] Developers can use new JavaScript language features by using Babel to convert their source code into versions of JavaScript that a Web browser can process.

[7][8] Babel plugins transform syntax that is not widely supported into a backward-compatible version.

[10][11] Babel can automatically inject polyfills provided by core-js[12] for support features that are missing entirely from JavaScript environments.

For example, static methods such as Array.from and built-ins such as Promise are available only in ES6 and above, but they can be used in older environments if core-js is used.

Babel Logo
Logo