babel-docs
Installation
SKILL.md
Babel
Babel is a JavaScript compiler — a toolchain mainly used to convert ECMAScript 2015+ code into backwards-compatible JavaScript in current and older browsers or environments.
Version: Babel 7.x / 8.x
Documentation: babeljs.io/docs
GitHub: github.com/babel/babel
Quick Reference
| Topic | File |
|---|---|
| Getting Started & Learn ES2015 (What is Babel, usage guide, installation, plugins & presets intro, configuration intro, polyfill, Learn ES2015 features: arrows, classes, destructuring, template strings, modules, generators, promises, proxies, symbols, etc., editor integrations) | getting-started.md |
| Configuration & Options (config file types: babel.config.json/.babelrc.json/package.json/JS configs, project-wide vs file-relative config, monorepos, config function API: api.cache/api.env/api.caller/api.assertVersion, all options: primary/config loading/plugin & preset/output targets/config merging/source maps/misc/code generator/AMD-UMD-SystemJS, print effective configs, config merging, compiler assumptions) | configuration.md |
| Plugins & Presets (using plugins, transform/syntax plugins, plugin ordering, plugin options, plugin development, full plugins list by ES version: ES3-ES2026 + TC39 proposals + module formats + React + Flow + TypeScript + misc + syntax-only, presets: official presets, creating presets, preset ordering, preset options, @babel/preset-env with all options, @babel/preset-react with all options, @babel/preset-typescript with all options, @babel/preset-flow) | plugins-and-presets.md |
| API & CLI Reference (@babel/cli: all CLI flags and usage, @babel/core: transform/transformSync/transformAsync/transformFile/transformFromAst/parse APIs + advanced APIs, @babel/parser: options and plugins, @babel/generator: options, @babel/traverse: visitor pattern, path object, scope, @babel/types: builders, type checkers, assertions, utilities, @babel/template, @babel/standalone, @babel/register, @babel/eslint-parser) | api-and-cli.md |