原来的样子
修改后
如果还没有下载过babel-preset-es2015包记得在修改后去npm install下
附上没格式的代码
{
"presets": [
["es2015", { "modules": false }],
"stage-2"
],
"plugins":
["transform-runtime",["component", [
{
"libraryName": "element-ui",
"styleLibraryName": "theme-default"
}
]]],
"comments": false,
"env": {
"test": {
"presets": ["env", "stage-2"],
"plugins": [ "istanbul" ]
}
}
}