Next: Testing, Previous: Webpack, Up: React Development Tools [Index]
"Babel is a JavaScript compiler"
Babel is a toolchain that is mainly used to convert ECMAScript 2015+ code into a backwards compatible version of JavaScript in current and older browsers or environments.
Babel:
Babel has support for the latest version of JavaScript through syntax transformers. These plugins allow you to use new syntax, right now without waiting for browser support.
Babel can convert JSX syntax! Check out our React preset to get started.
Babel can strip out type annotations! Check out either our Flow preset or TypeScript preset to get started.
Babel is built out of plugins. A plugin is just a function. Compose your own transformation pipeline using existing plugins or write your own. Easily use a set of plugins by using or creating a preset.
• Overview | ||
• Babel CLI | ||
• Plugins and Presets | ||
• Polyfills | ||
• Configuration | ||
• Using the CLI | ||
• Using the API---@babel/core |