Skip to content

Commit 43613d1

Browse files
fix(bundle): restore support for JS modules
This change is needed so the bundle can be used with: ``` <script type="module" src="xxxx/socket.io.js"></script> ``` Related: - socketio/socket.io#3828 - 13b32b3 - 8c08c5d
1 parent 6abfa1f commit 43613d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

support/webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ module.exports = {
1111
filename: "socket.io.js",
1212
library: "io",
1313
libraryTarget: "umd",
14-
globalObject: "this",
14+
globalObject: "self",
1515
},
1616
mode: "development",
1717
devtool: "source-map",

0 commit comments

Comments
 (0)