Skip to content

Commit dcb395e

Browse files
fix: get rid of Symbol core-js polyfill
1 parent f62f20f commit dcb395e

File tree

4 files changed

+17
-4
lines changed

4 files changed

+17
-4
lines changed

client-src/modules/logger/index.js

Lines changed: 0 additions & 3 deletions
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

Lines changed: 4 additions & 0 deletions
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')

package-lock.json

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@
5656
"strip-ansi": "^7.0.0",
5757
"url": "^0.11.0",
5858
"webpack-dev-middleware": "^5.0.0",
59+
"whatwg-fetch": "^3.6.2",
5960
"ws": "^7.5.3"
6061
},
6162
"devDependencies": {
@@ -96,8 +97,8 @@
9697
"rimraf": "^3.0.2",
9798
"sockjs-client": "^1.5.1",
9899
"standard-version": "^9.3.0",
99-
"style-loader": "^2.0.0",
100100
"strip-ansi-v6": "npm:strip-ansi@^6.0.0",
101+
"style-loader": "^2.0.0",
101102
"supertest": "^6.1.3",
102103
"tcp-port-used": "^1.0.2",
103104
"typescript": "^4.2.4",

0 commit comments

Comments
 (0)