Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: restore the default export (bis)
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
- Loading branch information