npm i @babel/preset-env --save
.babelrc文件
{
"presets": [
[
"@babel/env",
{
"targets": {
"chrome": "60"
}
}
]
],
"plugins": [
[
"component",
{
"libraryName": "element-ui",
"styleLibraryName": "theme-chalk"
}
]
]
}
需要下载包
npm i @babel/preset-env --save