Skip to content

Commit fb8fbf4

Browse files
committed
feat: enable bugfixes option for babel by default
Per the discussion at babel/babel#11083, it should not be considered a breaking change Closes vuejs#5301 Closes vuejs#4848
1 parent f1bdf73 commit fb8fbf4

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

packages/@vue/babel-preset-app/index.js

+2
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ module.exports = (context, options = {}) => {
5959
debug = false,
6060
useBuiltIns = 'usage',
6161
modules = false,
62+
bugfixes = true,
6263
targets: rawTargets,
6364
spec,
6465
ignoreBrowserslistConfig = !!process.env.VUE_CLI_MODERN_BUILD,
@@ -137,6 +138,7 @@ module.exports = (context, options = {}) => {
137138
}
138139

139140
const envOptions = {
141+
bugfixes,
140142
corejs: useBuiltIns ? 3 : false,
141143
spec,
142144
loose,

packages/@vue/babel-preset-app/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
3131
"@babel/plugin-syntax-jsx": "^7.8.3",
3232
"@babel/plugin-transform-runtime": "^7.8.3",
33-
"@babel/preset-env": "^7.8.4",
33+
"@babel/preset-env": "^7.9.0",
3434
"@babel/runtime": "^7.8.4",
3535
"@vue/babel-preset-jsx": "^1.1.2",
3636
"babel-plugin-dynamic-import-node": "^2.3.0",

0 commit comments

Comments
 (0)