.babelrc配置例子
作者:互联网
{
"presets":[
["es2015",{"modlues":false}],
"react",
],
"plugins": [
"transform-object-rest-spread",
"syntax-dynamic-import",
["import", { "libraryName": "antd","style": "css"}], // `style: true` for less
"transform-object-rest-spread",
"syntax-dynamic-import",
"transform-class-properties",
["transform-class-properties", { "spec": true }],
"syntax-async-functions",
"transform-regenerator",
"transform-runtime",
"transform-async-to-generator"
],
"ignore":[
"react",
"antd"
]
}
标签:babelrc,配置,dynamic,transform,rest,syntax,例子,antd,import 来源: https://www.cnblogs.com/javalinux/p/16296924.html