|
|
@ -18,15 +18,7 @@ module.exports = function(api) { |
|
|
|
return { |
|
|
|
return { |
|
|
|
presets: [ |
|
|
|
presets: [ |
|
|
|
isTestEnv && [ |
|
|
|
isTestEnv && [ |
|
|
|
'@babel/preset-env', |
|
|
|
'@babel/preset-env' |
|
|
|
{ |
|
|
|
|
|
|
|
targets: { |
|
|
|
|
|
|
|
node: 'current', |
|
|
|
|
|
|
|
browsers: [ |
|
|
|
|
|
|
|
'ie >= 10' |
|
|
|
|
|
|
|
] |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
], |
|
|
|
], |
|
|
|
(isProductionEnv || isDevelopmentEnv) && [ |
|
|
|
(isProductionEnv || isDevelopmentEnv) && [ |
|
|
|
'@babel/preset-env', |
|
|
|
'@babel/preset-env', |
|
|
@ -35,13 +27,7 @@ module.exports = function(api) { |
|
|
|
useBuiltIns: 'entry', |
|
|
|
useBuiltIns: 'entry', |
|
|
|
corejs: 3, |
|
|
|
corejs: 3, |
|
|
|
modules: false, |
|
|
|
modules: false, |
|
|
|
exclude: ['transform-typeof-symbol'], |
|
|
|
exclude: ['transform-typeof-symbol'] |
|
|
|
targets: { |
|
|
|
|
|
|
|
node: 'current', |
|
|
|
|
|
|
|
browsers: [ |
|
|
|
|
|
|
|
'ie >= 10' |
|
|
|
|
|
|
|
] |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
] |
|
|
|
] |
|
|
|
].filter(Boolean), |
|
|
|
].filter(Boolean), |
|
|
|