From 3f02c150e3926cbc46425d4a155a89b02fde9eeb Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Tue, 16 Jul 2019 18:31:39 -0700 Subject: [PATCH] Set corejs version --- frontend/gulp/webpack.js | 6 ++++-- package.json | 1 + yarn.lock | 5 +++++ 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/frontend/gulp/webpack.js b/frontend/gulp/webpack.js index 779373307..e5b685154 100644 --- a/frontend/gulp/webpack.js +++ b/frontend/gulp/webpack.js @@ -100,6 +100,7 @@ const config = { loose: true, debug: false, useBuiltIns: 'entry', + corejs: 3, targets: browsers } ] @@ -119,8 +120,9 @@ const config = { loader: 'css-loader', options: { importLoaders: 1, - localIdentName: '[name]/[local]/[hash:base64:5]', - modules: true + modules: { + localIdentName: '[name]/[local]/[hash:base64:5]' + } } }, { diff --git a/package.json b/package.json index 6c95532d0..d45ad7efd 100644 --- a/package.json +++ b/package.json @@ -43,6 +43,7 @@ "classnames": "2.2.6", "clipboard": "2.0.4", "connected-react-router": "6.3.1", + "core-js": "3", "create-react-class": "15.6.3", "css-loader": "3.0.0", "del": "4.0.0", diff --git a/yarn.lock b/yarn.lock index 7f5a9dfcd..6b90de9a9 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2496,6 +2496,11 @@ core-js-pure@3.1.4: resolved "https://registry.yarnpkg.com/core-js-pure/-/core-js-pure-3.1.4.tgz#5fa17dc77002a169a3566cc48dc774d2e13e3769" integrity sha512-uJ4Z7iPNwiu1foygbcZYJsJs1jiXrTTCvxfLDXNhI/I+NHbSIEyr548y4fcsCEyWY0XgfAG/qqaunJ1SThHenA== +core-js@3: + version "3.1.4" + resolved "https://registry.yarnpkg.com/core-js/-/core-js-3.1.4.tgz#3a2837fc48e582e1ae25907afcd6cf03b0cc7a07" + integrity sha512-YNZN8lt82XIMLnLirj9MhKDFZHalwzzrL9YLt6eb0T5D0EDl4IQ90IGkua8mHbnxNrkj1d8hbdizMc0Qmg1WnQ== + core-js@^1.0.0: version "1.2.7" resolved "https://registry.yarnpkg.com/core-js/-/core-js-1.2.7.tgz#652294c14651db28fa93bd2d5ff2983a4f08c636"