Skip to content

Commit

Permalink
fix(bundle): restore support for JS modules
Browse files Browse the repository at this point in the history
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

Backported from master: 43613d1
  • Loading branch information
darrachequesne committed Mar 12, 2021
1 parent 78ec5a6 commit afa7953
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion support/webpack.config.js
Expand Up @@ -11,7 +11,7 @@ module.exports = {
filename: "socket.io.js",
library: "io",
libraryTarget: "umd",
globalObject: "this",
globalObject: "self",
},
mode: "development",
devtool: "source-map",
Expand Down

0 comments on commit afa7953

Please sign in to comment.