From c4ccb04b1d10e9489aeec6d85199586cef044c91 Mon Sep 17 00:00:00 2001 From: Mark van den Brink Date: Fri, 30 Apr 2021 15:33:52 +0200 Subject: [PATCH] Update package.json Fixes browser module resolution in webpack. See issue https://github.com/socketio/socket.io-client/issues/1457. --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index 0f744a9d..37e1e85a 100644 --- a/package.json +++ b/package.json @@ -21,6 +21,7 @@ "./dist/socket.io.js": "./dist/socket.io.js", "./dist/socket.io.js.map": "./dist/socket.io.js.map", ".": { + "browser": "./dist/socket.io.js", "import": "./wrapper.mjs", "require": "./build/index.js" }