Skip to content

Commit 7afe3d2

Browse files
fix: get rid of Symbol core-js polyfill (#3535)
1 parent f62f20f commit 7afe3d2

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

client-src/modules/logger/index.js

-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
11
'use strict';
22

3-
// eslint-disable-next-line import/no-extraneous-dependencies
4-
require('core-js/stable/symbol');
5-
63
module.exports = require('webpack/lib/logging/runtime');

client-src/webpack.config.js

+4
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@ module.exports = [
4848
],
4949
},
5050
plugins: [
51+
new webpack.DefinePlugin({
52+
Symbol:
53+
'(typeof Symbol !== "undefined" ? Symbol : function (i) { return i; })',
54+
}),
5155
new webpack.NormalModuleReplacementPlugin(
5256
/^tapable\/lib\/SyncBailHook/,
5357
path.join(__dirname, 'modules/logger/SyncBailHookFake.js')

0 commit comments

Comments
 (0)