Skip to content

Commit

Permalink
fix: get rid of Symbol core-js polyfill (#3535)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-akait authored Jul 19, 2021
1 parent f62f20f commit 7afe3d2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 0 additions & 3 deletions client-src/modules/logger/index.js
Original file line number Diff line number Diff line change
@@ -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');
4 changes: 4 additions & 0 deletions client-src/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit 7afe3d2

Please sign in to comment.