27 line
569 B
JavaScript
27 line
569 B
JavaScript
|
/*
|
||
|
* @Date: 2020-12-14 09:07:03
|
||
|
* @LastEditors: guo
|
||
|
* @LastEditTime: 2020-12-29 21:34:11
|
||
|
* @FilePath: \basic-admin\babel.config.js
|
||
|
* @Description: 修改babel配置
|
||
|
* preset-env用于适配浏览器(最新4个版本)
|
||
|
* transform-runtime 用于识别一些比较新的js语法
|
||
|
*/
|
||
|
module.exports = {
|
||
|
presets: [
|
||
|
['@babel/preset-env', {
|
||
|
'useBuiltIns': 'usage',
|
||
|
'debug': true,
|
||
|
'targets': [
|
||
|
'last 4 versions'
|
||
|
]
|
||
|
}],
|
||
|
'@vue/app'
|
||
|
],
|
||
|
plugins: [
|
||
|
['@babel/plugin-transform-runtime', {
|
||
|
'corejs': 3
|
||
|
}]
|
||
|
]
|
||
|
}
|