From afa79532f8a422cc9246175abdbe30299a0b0281 Mon Sep 17 00:00:00 2001 From: Damien Arrachequesne Date: Wed, 10 Mar 2021 11:06:03 +0100 Subject: [PATCH] fix(bundle): restore support for JS modules This change is needed so the bundle can be used with: ``` ``` Related: - https://github.com/socketio/socket.io/discussions/3828 - https://github.com/socketio/socket.io-client/commit/13b32b39a4c1cf4829144fb0a95c4d0506000fb3 - https://github.com/socketio/socket.io-client/commit/8c08c5d5c3bd6dd5477ca11a2625314da57724cc Backported from master: https://github.com/socketio/socket.io-client/commit/43613d1b2c3c04e89d572750656012f54d44467c --- support/webpack.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/support/webpack.config.js b/support/webpack.config.js index 282f971d7..67af9b9ec 100644 --- a/support/webpack.config.js +++ b/support/webpack.config.js @@ -11,7 +11,7 @@ module.exports = { filename: "socket.io.js", library: "io", libraryTarget: "umd", - globalObject: "this", + globalObject: "self", }, mode: "development", devtool: "source-map",