From c557707fb694bd10397b4cd8b4ec2fbe59128faa Mon Sep 17 00:00:00 2001 From: Damien Arrachequesne Date: Sun, 14 Nov 2021 07:51:52 +0100 Subject: [PATCH] fix: fix vite build for CommonJS users Related: https://github.com/socketio/socket.io-client/issues/1504 --- package.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 7c6c9d165..f119f2956 100644 --- a/package.json +++ b/package.json @@ -92,7 +92,10 @@ "./test/node.js": false, "./build/esm/transports/xmlhttprequest.js": "./build/esm/transports/xmlhttprequest.browser.js", "./build/esm/transports/websocket-constructor.js": "./build/esm/transports/websocket-constructor.browser.js", - "./build/esm/globalThis.js": "./build/esm/globalThis.browser.js" + "./build/esm/globalThis.js": "./build/esm/globalThis.browser.js", + "./build/cjs/transports/xmlhttprequest.js": "./build/cjs/transports/xmlhttprequest.browser.js", + "./build/cjs/transports/websocket-constructor.js": "./build/cjs/transports/websocket-constructor.browser.js", + "./build/cjs/globalThis.js": "./build/cjs/globalThis.browser.js" }, "repository": { "type": "git",