# 扩展

# 顺序

  • Plugins先于Presets
  • Plugins从前往后执行
  • Presets从后往前执行

# 插件参数

{
    "plugins": [
        [
            "@babel/plugin-proposal-class-properties", 
            { "loose": true }
        ]
    ]
}
1
2
3
4
5
6
7
8

# 短名称

@babel/plugin-xx可简写为@babel/xx,如@babel/plugin-proposal-class-properties可简写为@babel/proposal-class-properties

babel-plugin-xx可简写为xx