Skip to content

Commit

Permalink
feat: enable bugfixes option for babel by default (#5322)
Browse files Browse the repository at this point in the history
Per the discussion at babel/babel#11083,
it should not be considered a breaking change

Closes #5301
Closes #4848
  • Loading branch information
sodatea committed Mar 31, 2020
1 parent a1041a8 commit 55d3375
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions packages/@vue/babel-preset-app/index.js
Expand Up @@ -59,6 +59,7 @@ module.exports = (context, options = {}) => {
debug = false,
useBuiltIns = 'usage',
modules = false,
bugfixes = true,
targets: rawTargets,
spec,
ignoreBrowserslistConfig = !!process.env.VUE_CLI_MODERN_BUILD,
Expand Down Expand Up @@ -137,6 +138,7 @@ module.exports = (context, options = {}) => {
}

const envOptions = {
bugfixes,
corejs: useBuiltIns ? 3 : false,
spec,
loose,
Expand Down
2 changes: 1 addition & 1 deletion packages/@vue/babel-preset-app/package.json
Expand Up @@ -30,7 +30,7 @@
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
"@babel/plugin-syntax-jsx": "^7.8.3",
"@babel/plugin-transform-runtime": "^7.8.3",
"@babel/preset-env": "^7.8.4",
"@babel/preset-env": "^7.9.0",
"@babel/runtime": "^7.8.4",
"@vue/babel-preset-jsx": "^1.1.2",
"babel-plugin-dynamic-import-node": "^2.3.0",
Expand Down

0 comments on commit 55d3375

Please sign in to comment.