Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: update @babel/preset-env to 2.13.x #8887

Merged
merged 4 commits into from
Feb 24, 2021
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
},
"devDependencies": {
"@babel/core": "^7.13.1",
"@babel/preset-env": "^7.13.0",
"@babel/preset-env": "^7.13.5",
"@ls-lint/ls-lint": "^1.9.2",
"@nuxtjs/eslint-config": "^5.0.0",
"@nuxtjs/eslint-config-typescript": "^5.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/babel-preset-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.13.0",
"@babel/plugin-proposal-optional-chaining": "^7.13.0",
"@babel/plugin-transform-runtime": "^7.13.2",
"@babel/preset-env": "~7.12.17",
"@babel/preset-env": "^7.13.5",
"@babel/runtime": "^7.13.2",
"@vue/babel-preset-jsx": "^1.2.4",
"core-js": "^2.6.5",
Expand Down
6 changes: 6 additions & 0 deletions packages/babel-preset-app/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,12 @@ module.exports = (api, options = {}) => {
corejs = { version: Number(corejs) }
}

// TODO: remove this when babel-plugin-polyfill-corejs2 fixes web.dom.iterable injection
if (corejs.version === 2) {
const corejs2BuiltIns = require('@babel/compat-data/corejs2-built-ins')
corejs2BuiltIns['web.dom.iterable'] = {}
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in babel-plugin-polyfill-corejs2@0.1.6, sorry!


if (corejs.proposals === undefined) {
corejs.proposals = true
}
Expand Down
Loading