Skip to content

Commit

Permalink
fix(babel-preset-app): avoid corejs warning when useBuiltIns is false (
Browse files Browse the repository at this point in the history
  • Loading branch information
LeBenLeBen committed Mar 3, 2020
1 parent 84abd11 commit f1bde5b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/@vue/babel-preset-app/index.js
Expand Up @@ -137,7 +137,7 @@ module.exports = (context, options = {}) => {
}

const envOptions = {
corejs: 3,
corejs: useBuiltIns ? 3 : false,
spec,
loose,
debug,
Expand Down Expand Up @@ -204,7 +204,7 @@ module.exports = (context, options = {}) => {
presets: [
[require('@babel/preset-env'), {
useBuiltIns,
corejs: 3
corejs: useBuiltIns ? 3 : false
}]
]
}]
Expand Down

0 comments on commit f1bde5b

Please sign in to comment.