Babel 中文文档
  • 印记中文
  • 文档
  • 配置
  • 试用
  • 视频
  • 博客
  • 赞助
  • 团队
  • GitHub

›配置参考

指南

  • 什么是 Babel?
  • 使用指南
  • 配置 Babel
  • 学习 ES2015
  • 升级至 Babel 7

配置参考

  • 配置文件
  • Config Options
  • 预设
  • 插件
  • 插件列表
  • Compiler assumptions

预设

  • @babel/preset-env
  • @babel/preset-react
  • @babel/preset-typescript
  • @babel/preset-flow

杂项

  • 路线图
  • 注意事项
  • 新增特性时间轴
  • FAQ
  • 编辑器

集成包

  • @babel/cli
  • @babel/polyfill
  • @babel/plugin-transform-runtime
  • @babel/register
  • @babel/standalone

工具包

  • @babel/parser
  • @babel/core
  • @babel/generator
  • @babel/code-frame
  • @babel/runtime
  • @babel/template
  • @babel/traverse
  • @babel/types

帮助工具包

  • helper-compilation-targets
  • helper-module-imports
Edit

插件列表

JavaScript

TC39 提案

  • decorators
  • do-expressions
  • duplicated-named-capturing-groups-regex
  • export-default-from
  • export-namespace-from
  • function-bind
  • function-sent
  • partial-application
  • pipeline-operator
  • throw-expressions
  • record-and-tuple

ES2022

  • class-properties
  • class-static-block
  • private-property-in-object
  • syntax-top-level-await

ES2021

  • logical-assignment-operators
  • numeric-separator

ES2020

  • export-namespace-from
  • nullish-coalescing-operator
  • optional-chaining

可解析语法

  • syntax-dynamic-import
  • syntax-import-meta
  • syntax-bigint

ES2019

  • optional-catch-binding
  • json-strings

ES2018

  • async-generator-functions
  • dotall-regex
  • named-capturing-groups-regex
  • object-rest-spread
  • unicode-property-regex

ES2017

  • async-to-generator

ES2016

  • exponentiation-operator

ES2015

  • arrow-functions
  • block-scoped-functions
  • block-scoping
  • classes
  • computed-properties
  • destructuring
  • duplicate-keys
  • for-of
  • function-name
  • instanceof
  • literals
  • new-target
  • object-super
  • parameters
  • shorthand-properties
  • spread
  • sticky-regex
  • template-literals
  • typeof-symbol
  • unicode-escapes
  • unicode-regex

ES5

  • property-mutators

ES3

  • member-expression-literals
  • property-literals
  • reserved-words

模块格式

  • modules-amd
  • modules-commonjs
  • modules-systemjs
  • modules-umd

React

  • react-constant-elements
  • react-inline-elements

React 预设

  • react-display-name
  • react-jsx
  • react-jsx-compat
  • react-jsx-self
  • react-jsx-source

Flow

  • flow-strip-types

TypeScript

  • typescript

杂项

  • external-helpers
  • jscript
  • object-assign
  • object-set-prototype-of-to-assign
  • proto-to-assign
  • regenerator
  • runtime
  • strict-mode

Syntax Only

  • syntax-bigint (ES2020)
  • syntax-dynamic-import (ES2020)
  • syntax-import-meta (ES2020)
  • syntax-top-level-await (ES2022)
← 插件Compiler assumptions →
  • JavaScript
    • TC39 提案
    • ES2022
    • ES2021
    • ES2020
    • ES2019
    • ES2018
    • ES2017
    • ES2016
    • ES2015
    • ES5
    • ES3
    • 模块格式
    • React
    • Flow
    • TypeScript
    • 杂项
Babel 中文文档
文档
学习 ES2015
社区
视频用户Stack OverflowSlack 频道Twitter
更多
博客GitHub 组织GitHub 仓库Website 仓库旧版网址 6.x旧版网址 5.x