Skip to content

Commit 8c08c5d

Browse files
refactor: remove global polyfill from webpack config
Fixes #1407
1 parent 2874d5f commit 8c08c5d

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

support/webpack.config.js

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,6 @@ module.exports = {
1111
filename: "socket.io.js",
1212
library: "io",
1313
libraryTarget: "umd",
14-
// see https://github.com/webpack/webpack/issues/6525
15-
globalObject: `(() => {
16-
if (typeof self !== 'undefined') {
17-
return self;
18-
} else if (typeof window !== 'undefined') {
19-
return window;
20-
} else if (typeof global !== 'undefined') {
21-
return global;
22-
} else {
23-
return Function('return this')();
24-
}
25-
})()`,
2614
},
2715
mode: "development",
2816
devtool: "source-map",

0 commit comments

Comments
 (0)