From 38ee3195b0192d8180899fd61308e03fa3a0eb32 Mon Sep 17 00:00:00 2001 From: Richard Moore Date: Tue, 6 Jun 2023 22:33:51 -0400 Subject: [PATCH] Fix CJS browser bundling (#4033). --- misc/basedirs/lib.commonjs/package.json | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/misc/basedirs/lib.commonjs/package.json b/misc/basedirs/lib.commonjs/package.json index 5bbefffba..0e2116858 100644 --- a/misc/basedirs/lib.commonjs/package.json +++ b/misc/basedirs/lib.commonjs/package.json @@ -1,3 +1,12 @@ { + "browser": { + "./crypto/crypto.js": "./crypto/crypto-browser.js", + "./providers/provider-ipcsocket.js": "./providers/provider-ipcsocket-browser.js", + "./providers/ws.js": "./providers/ws-browser.js", + "./utils/base64.js": "./utils/base64-browser.js", + "./utils/geturl.js": "./utils/geturl-browser.js", + "./wordlists/wordlists.js": "./wordlists/wordlists-browser.js" + }, + "sideEffects": false, "type": "commonjs" }