
10 changed files with 209 additions and 12133 deletions
@ -1,26 +1,20 @@ |
|||
module.exports = { |
|||
presets: [ |
|||
'@vue/cli-plugin-babel/preset', |
|||
[ |
|||
'@babel/preset-env', |
|||
{ |
|||
useBuiltIns: 'usage', // 按需引入polyfill
|
|||
corejs: 3, // 指定core-js版本
|
|||
targets: { |
|||
// 指定需要兼容的浏览器版本
|
|||
ie: '10', |
|||
chrome: '58', |
|||
firefox: '60', |
|||
safari: '11', |
|||
edge: '16', |
|||
}, |
|||
}, |
|||
], |
|||
['@vue/cli-plugin-babel/preset', { |
|||
useBuiltIns: 'usage', |
|||
corejs: 3, |
|||
targets: { |
|||
ie: '10', |
|||
chrome: '58', |
|||
firefox: '60', |
|||
safari: '11', |
|||
edge: '16' |
|||
} |
|||
}] |
|||
], |
|||
plugins: [ |
|||
// 可以添加其他Babel插件
|
|||
'@babel/plugin-proposal-class-properties', |
|||
'@babel/plugin-proposal-optional-chaining', |
|||
'@babel/plugin-transform-runtime' |
|||
], |
|||
}; |
|||
] |
|||
} |
|||
|
File diff suppressed because it is too large
Before Width: | Height: | Size: 49 KiB After Width: | Height: | Size: 14 KiB |
Loading…
Reference in new issue