Skip to content

Commit

Permalink
fix(package): give node condition high priority
Browse files Browse the repository at this point in the history
in case of mixed environments that look for both
"node" and "browser" export conditions
  • Loading branch information
phryneas committed Apr 17, 2024
1 parent e83a669 commit 0b10f5b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,12 @@
"default": "./lib/browser/index.js"
},
"./node": {
"browser": null,
"types": "./lib/node/index.d.ts",
"node": {
"require": "./lib/node/index.js",
"import": "./lib/node/index.mjs"
},
"browser": null,
"require": "./lib/node/index.js",
"import": "./lib/node/index.mjs",
"default": "./lib/node/index.mjs"
Expand Down

0 comments on commit 0b10f5b

Please sign in to comment.