From 1e80ed16ee38b2e1ca77fcf38acf0df1afcecdce Mon Sep 17 00:00:00 2001 From: Arctic Ice Studio Date: Thu, 25 Apr 2019 14:28:54 +0200 Subject: [PATCH] Replace deprecated `@babel/polyfill` package with `core-js` 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 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index b2e3bfce..d496a2f5 100644 --- a/package.json +++ b/package.json @@ -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",