You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The previous commit, while successfully restoring support for:
```js
const socket = require("socket.io-client")(...);
```
breaks for some other cases:
- socketio/socket.io#4128
- #1509
According to [1], we should use `export = `, but this is not supported
by module "esnext":
> Export assignment cannot be used when targeting ECMAScript modules
So we'll go for this ugly workaround, at least until we remove the
default export in the next major release.
[1]: https://www.typescriptlang.org/docs/handbook/modules.html#export--and-import--require
0 commit comments