From 959b12ee81dbd08621e1cd60fd52ac4b05955655 Mon Sep 17 00:00:00 2001 From: Damien Arrachequesne Date: Tue, 17 Nov 2020 11:41:36 +0100 Subject: [PATCH] fix: add io as named exports The TypeScript (build/index.d.ts) and ES modules exports did not match, which caused issues with webpack and ts-loader. Related: https://github.com/socketio/socket.io-client/issues/1396 --- wrapper.mjs | 1 + 1 file changed, 1 insertion(+) diff --git a/wrapper.mjs b/wrapper.mjs index b914d4cdd..50ec133eb 100644 --- a/wrapper.mjs +++ b/wrapper.mjs @@ -1,4 +1,5 @@ import io from "./build/index.js"; export const Manager = io.Manager; +export const io = io; export default io;