Английская Википедия:Babel (transcompiler)
Шаблон:Short description Шаблон:Infobox software
Babel is a free and open-source JavaScript transcompiler that is mainly used to convert ECMAScript 2015+ (ES6+) code into backwards-compatible JavaScript code that can be run by older JavaScript engines. It allows web developers to take advantage of the newest features of the language.[1]
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.[2] Babel can also be used to compile TypeScript into JavaScript.[3] The core version of Babel was downloaded 5 million times a month in 2016, and this increased to 16 million times a week in 2019.[4][5]
Babel plugins transform syntax that is not widely supported into a backward-compatible version. For example, arrow functions, which are specified in ES6, are converted into regular function declarations.[6] Non-standard JavaScript syntax such as JSX can also be transformed.[7][8]
Babel can automatically inject polyfills provided by core-js[9] 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.
See also
- Comparison of web browsers
- TypeScript
- Web development tools
- Webpack JavaScript bundler
- JavaScript library
References
External links
- ↑ Шаблон:Cite web
- ↑ Шаблон:Cite web
- ↑ Using Babel with TypeScript, TypeScript official website
- ↑ Шаблон:Cite web
- ↑ Шаблон:Cite web
- ↑ Шаблон:Cite web
- ↑ Шаблон:Cite web
- ↑ Шаблон:Cite news
- ↑ Шаблон:Cite web
- Английская Википедия
- JavaScript programming tools
- Software using the MIT license
- Source-to-source compilers
- Free software programmed in JavaScript
- Cross-platform free software
- Страницы, где используется шаблон "Навигационная таблица/Телепорт"
- Страницы с телепортом
- Википедия
- Статья из Википедии
- Статья из Английской Википедии