-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Make socket.io including dependencies esm compatible #1536
Labels
enhancement
New feature or request
Milestone
Comments
In practice you likely need to mock socket.io in most tests which makes this a not that major issue for this use case |
darrachequesne
added a commit
to socketio/engine.io-client
that referenced
this issue
Apr 13, 2022
This commit allows to: - provide an ESM version of those modules ([1]) - reduce the attack surface in case of supply chain attacks - reduce the size of the bundle with tree-shaking As a downside, we won't receive security updates for those modules anymore. [1]: socketio/socket.io-client#1536
Actually it would make it simpler for example in conjunction with esbuild or build less execution if they would be esm compatible. |
darrachequesne
added a commit
to socketio/emitter
that referenced
this issue
Apr 17, 2022
darrachequesne
added a commit
to socketio/socket.io-parser
that referenced
this issue
Apr 17, 2022
darrachequesne
added a commit
that referenced
this issue
Apr 23, 2022
This commit allows to: - provide an ESM version of those modules ([1]) - reduce the attack surface in case of supply chain attacks - reduce the size of the bundle with tree-shaking As a downside, we won't receive security updates for those modules anymore. [1]: #1536 Related: socketio/engine.io-client@df32277
OK, so starting from |
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
Is your feature request related to a problem? Please describe.
@web/test-runner
only supports ESM imports: modernweb-dev/web#1439. It is currently not possible to use socket.io with that.Describe the solution you'd like
All dependencies of socket.io-client should be ESM modules. Right now there are problems with at least
The text was updated successfully, but these errors were encountered: