Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Upgrade: @babel/polyfill => core-js v3 (#11833)
🚨 As of Babel 7.4.0, this package has been deprecated in favor of directly including core-js/stable (to polyfill ECMAScript features) and regenerator-runtime/runtime (needed to use transpiled generator functions):
  • Loading branch information
aladdin-add committed Jun 18, 2019
1 parent 65faa04 commit c57a4a4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion package.json
Expand Up @@ -84,7 +84,6 @@
},
"devDependencies": {
"@babel/core": "^7.4.3",
"@babel/polyfill": "^7.4.3",
"@babel/preset-env": "^7.4.3",
"acorn": "^6.1.1",
"babel-loader": "^8.0.5",
Expand All @@ -93,6 +92,7 @@
"chai": "^4.0.1",
"cheerio": "^0.22.0",
"common-tags": "^1.8.0",
"core-js": "^3.1.3",
"coveralls": "^3.0.3",
"dateformat": "^3.0.3",
"ejs": "^2.6.1",
Expand Down Expand Up @@ -123,6 +123,7 @@
"proxyquire": "^2.0.1",
"puppeteer": "^1.14.0",
"recast": "^0.17.6",
"regenerator-runtime": "^0.13.2",
"shelljs": "^0.8.2",
"sinon": "^3.3.0",
"temp": "^0.9.0",
Expand Down
4 changes: 2 additions & 2 deletions webpack.config.js
Expand Up @@ -3,8 +3,8 @@
module.exports = {
mode: "none",
entry: {
eslint: ["@babel/polyfill", "./lib/linter/linter.js"],
espree: ["@babel/polyfill", "espree"]
eslint: ["core-js/stable", "regenerator-runtime/runtime", "./lib/linter/linter.js"],
espree: ["core-js/stable", "regenerator-runtime/runtime", "espree"]
},
output: {
filename: "[name].js",
Expand Down

0 comments on commit c57a4a4

Please sign in to comment.