diff --git a/package.json b/package.json index 051d7888..e7a7a780 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,7 @@ "classnames": "^2.2.6", "compression": "^1.7.4", "cookie-parser": "^1.4.4", - "core-js": "^2.5.7", + "core-js": "^3.1.4", "decimal.js": "10.0.1", "dotenv": "6.2.0", "dotenv-expand": "4.2.0", diff --git a/src/index.js b/src/index.js index 3f856b08..77975539 100644 --- a/src/index.js +++ b/src/index.js @@ -13,8 +13,8 @@ // React 16 depends on the collection types Map and Set, as well as requestAnimationFrame. // https://reactjs.org/docs/javascript-environment-requirements.html -import 'core-js/es6/map'; -import 'core-js/es6/set'; +import 'core-js/features/map'; +import 'core-js/features/set'; import 'raf/polyfill'; import React from 'react'; diff --git a/yarn.lock b/yarn.lock index a6703722..93b02486 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3018,11 +3018,16 @@ core-js@^1.0.0: resolved "https://registry.yarnpkg.com/core-js/-/core-js-1.2.7.tgz#652294c14651db28fa93bd2d5ff2983a4f08c636" integrity sha1-ZSKUwUZR2yj6k70tX/KYOk8IxjY= -core-js@^2.4.0, core-js@^2.5.7: +core-js@^2.4.0: version "2.6.5" resolved "https://registry.yarnpkg.com/core-js/-/core-js-2.6.5.tgz#44bc8d249e7fb2ff5d00e0341a7ffb94fbf67895" integrity sha512-klh/kDpwX8hryYL14M9w/xei6vrv6sE8gTHDG7/T/+SEovB/G4ejwcfE/CBzO6Edsu+OETZMZ3wcX/EjUkrl5A== +core-js@^3.1.4: + version "3.1.4" + resolved "https://registry.yarnpkg.com/core-js/-/core-js-3.1.4.tgz#3a2837fc48e582e1ae25907afcd6cf03b0cc7a07" + integrity sha512-YNZN8lt82XIMLnLirj9MhKDFZHalwzzrL9YLt6eb0T5D0EDl4IQ90IGkua8mHbnxNrkj1d8hbdizMc0Qmg1WnQ== + core-util-is@1.0.2, core-util-is@~1.0.0: version "1.0.2" resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.2.tgz#b5fd54220aa2bc5ab57aab7140c940754503c1a7"