Skip to content

Commit 156ef21

Browse files
authored
fix: explicitly set corejs version for @babel/preset-env (#3696)
closes #3695
1 parent fd20e1f commit 156ef21

File tree

4 files changed

+239
-112
lines changed

4 files changed

+239
-112
lines changed

package.json

-3
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,7 @@
7676
"yorkie": "^2.0.0"
7777
},
7878
"resolutions": {
79-
"@babel/core": "^7.0.0",
80-
"@babel/preset-env": "^7.0.0",
8179
"babel-core": "7.0.0-bridge.0",
82-
"ps-tree": "^1.1.1",
8380
"puppeteer": "1.11.0",
8481
"vue": "^2.6.7",
8582
"vue-template-compiler": "^2.6.7",

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

+2-1
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,8 @@ module.exports = (context, options = {}) => {
123123
include,
124124
exclude: polyfills.concat(exclude || []),
125125
shippedProposals,
126-
forceAllTransforms
126+
forceAllTransforms,
127+
corejs: 2
127128
}
128129

129130
// cli-plugin-jest sets this to true because Jest runs without bundling

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626
"@babel/plugin-proposal-decorators": "^7.1.0",
2727
"@babel/plugin-syntax-dynamic-import": "^7.0.0",
2828
"@babel/plugin-syntax-jsx": "^7.0.0",
29-
"@babel/plugin-transform-runtime": "^7.0.0",
30-
"@babel/preset-env": "^7.0.0",
29+
"@babel/plugin-transform-runtime": "^7.4.0",
30+
"@babel/preset-env": "^7.4.1",
3131
"@babel/runtime": "^7.0.0",
3232
"@babel/runtime-corejs2": "^7.2.0",
3333
"@vue/babel-preset-jsx": "^1.0.0-beta.2",

0 commit comments

Comments
 (0)