Broken ES5 support in v2.3.0
See original GitHub issueNote: for support questions, please use one of these channels: stackoverflow or slack
For bug reports and feature requests for the Swift client, please open an issue there.
For bug reports and feature requests for the Java client, please open an issue there.
You want to:
- report a bug
- request a feature
Current behaviour
socket.io-client now depends on debug@4.x.x which is not ES5 compatible.
After socket.io-client is built with Webpack, the resulting file contains several const
declarations. As a result, the built file is not an ES5.
That sudden drop of ES5 is very surprising for a minor version release.
Steps to reproduce (if the current behaviour is a bug)
Build something with webpack importing socket.io-client
as a dependency, without Babel transcompilation.
Expected behaviour
Built files are ES5.
Setup
- OS: <any>
- browser: <n/a>
- socket.io version: 2.3.0
Other information (e.g. stacktraces, related issues, suggestions how to fix)
The const
statement is actually in the dependency, debug@4
. The 2.2.0 had debug@3
dependency.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:18
- Comments:8 (1 by maintainers)
Top GitHub Comments
You can pin to an ES5 version using:
https://github.com/transloadit/uppy/commit/5839b655f093edaa778d49b719f7dda063ef79cb
This was fixed in
socket.io-client@2.3.1
: https://github.com/socketio/socket.io-client/releases/tag/2.3.1