From 5f22ed0527cc80aa0cac415dfd12db2f94f0a855 Mon Sep 17 00:00:00 2001 From: Damien Arrachequesne Date: Sun, 14 Nov 2021 07:21:40 +0100 Subject: [PATCH] fix: fix vite build for CommonJS users Related: https://github.com/socketio/socket.io-client/issues/1504 --- package.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 8bf7a34..075a343 100644 --- a/package.json +++ b/package.json @@ -51,7 +51,9 @@ "browser": { "./test/node": "./test/browser", "./build/esm/encodePacket.js": "./build/esm/encodePacket.browser.js", - "./build/esm/decodePacket.js": "./build/esm/decodePacket.browser.js" + "./build/esm/decodePacket.js": "./build/esm/decodePacket.browser.js", + "./build/cjs/encodePacket.js": "./build/cjs/encodePacket.browser.js", + "./build/cjs/decodePacket.js": "./build/cjs/decodePacket.browser.js" }, "engines": { "node": ">=10.0.0"