Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit13b32b3

Browse files
fix: restore support for web workers
A previous change ([1], included in 3.0.5) broke support for webworkers, which threw "window is not defined" when importing the bundlein a web worker.Related:socketio/socket.io#3809Reference:https://webpack.js.org/configuration/output/#outputglobalobject[1]:8c08c5d
1 parent311c5d1 commit13b32b3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

‎support/webpack.config.js‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ module.exports = {
1111
filename:"socket.io.js",
1212
library:"io",
1313
libraryTarget:"umd",
14+
globalObject:"this",
1415
},
1516
mode:"development",
1617
devtool:"source-map",

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp