Skip to content

Commit

Permalink
refactor: remove global polyfill from webpack config
Browse files Browse the repository at this point in the history
Fixes #1407
  • Loading branch information
darrachequesne committed Jan 5, 2021
1 parent 2874d5f commit 8c08c5d
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions support/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,6 @@ module.exports = {
filename: "socket.io.js",
library: "io",
libraryTarget: "umd",
// see https://github.com/webpack/webpack/issues/6525
globalObject: `(() => {
if (typeof self !== 'undefined') {
return self;
} else if (typeof window !== 'undefined') {
return window;
} else if (typeof global !== 'undefined') {
return global;
} else {
return Function('return this')();
}
})()`,
},
mode: "development",
devtool: "source-map",
Expand Down

0 comments on commit 8c08c5d

Please sign in to comment.