Skip to content

Commit

Permalink
Replace deprecated @babel/polyfill package with core-js
Browse files Browse the repository at this point in the history
As of Babel 7.4.0, the `@babel/polyfill` package has been deprecated in
favor of directly including `core-js/stable` and
`regenerator-runtime/runtime` (1). Therefore the package has been
replaced with the `core-js` (2) package.
Currently only major version
2 is supported due to a transitive dependency conflict causing Gatsby
to error out when using `core-js@3` or higher!

References:
  (1) https://babeljs.io/docs/en/next/babel-polyfill.html
  (2) https://www.npmjs.com/package/core-js

GH-137
  • Loading branch information
arcticicestudio committed Apr 25, 2019
1 parent 75abc0e commit 1e80ed1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -90,11 +90,11 @@
"webpack-bundle-analyzer": "3.3.2"
},
"dependencies": {
"@babel/polyfill": "7.4.3",
"arctic-landscape": ">=0.1.0 <1.0.0",
"arctic-ocean-fractal": ">=0.1.0 <1.0.0",
"axios": "0.18.0",
"body-scroll-lock": "2.6.1",
"core-js": "2.6.5",
"date-fns": "2.0.0-alpha.27",
"gatsby": "2.3.29",
"gatsby-image": "2.0.40",
Expand Down

0 comments on commit 1e80ed1

Please sign in to comment.