Skip to content

Commit

Permalink
fix: fix vite build
Browse files Browse the repository at this point in the history
Some bundlers (like vite) do not support having a "browser" field in a
nested package.json.

Related: socketio/socket.io-client#1504
  • Loading branch information
darrachequesne committed Oct 15, 2021
1 parent 965a567 commit 900346e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@
"build/"
],
"browser": {
"./test/node": "./test/browser"
"./test/node": "./test/browser",
"./build/esm/encodePacket.js": "./build/esm/encodePacket.browser.js",
"./build/esm/decodePacket.js": "./build/esm/decodePacket.browser.js"
},
"engines": {
"node": ">=10.0.0"
Expand Down

0 comments on commit 900346e

Please # to comment.