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
  • Loading branch information
darrachequesne committed Mar 10, 2021
1 parent 6abfa1f commit 43613d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion support/webpack.config.js
Original file line number Diff line number Diff line change
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 43613d1

Please sign in to comment.