其他分享
首页 > 其他分享> > .babelrc配置例子

.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"
  ]
}

      转自:https://www.cnblogs.com/lw-88238/p/8883135.html

标签:babelrc,配置,dynamic,transform,rest,syntax,例子,antd,import
来源: https://www.cnblogs.com/javalinux/p/16296924.html