You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
564 B
25 lines
564 B
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',
|
|
},
|
|
},
|
|
],
|
|
],
|
|
plugins: [
|
|
// 可以添加其他Babel插件
|
|
'@babel/plugin-proposal-class-properties',
|
|
'@babel/plugin-transform-runtime',
|
|
],
|
|
};
|