From 7afe3d2559d7f4145fe67bbffa8994498ee3a3b6 Mon Sep 17 00:00:00 2001 From: Alexander Akait <4567934+alexander-akait@users.noreply.github.com> Date: Mon, 19 Jul 2021 22:42:12 +0300 Subject: [PATCH] fix: get rid of Symbol core-js polyfill (#3535) --- client-src/modules/logger/index.js | 3 --- client-src/webpack.config.js | 4 ++++ 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/client-src/modules/logger/index.js b/client-src/modules/logger/index.js index 6d8130e66d..02c3765ae6 100644 --- a/client-src/modules/logger/index.js +++ b/client-src/modules/logger/index.js @@ -1,6 +1,3 @@ 'use strict'; -// eslint-disable-next-line import/no-extraneous-dependencies -require('core-js/stable/symbol'); - module.exports = require('webpack/lib/logging/runtime'); diff --git a/client-src/webpack.config.js b/client-src/webpack.config.js index 94dc81306b..812b2ab572 100644 --- a/client-src/webpack.config.js +++ b/client-src/webpack.config.js @@ -48,6 +48,10 @@ module.exports = [ ], }, plugins: [ + new webpack.DefinePlugin({ + Symbol: + '(typeof Symbol !== "undefined" ? Symbol : function (i) { return i; })', + }), new webpack.NormalModuleReplacementPlugin( /^tapable\/lib\/SyncBailHook/, path.join(__dirname, 'modules/logger/SyncBailHookFake.js')