Skip to content

Commit

Permalink
fix: add conditional exports for node
Browse files Browse the repository at this point in the history
  • Loading branch information
antongolub committed Jul 1, 2024
1 parent 413de44 commit b473856
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,19 @@
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./browser/index.js",
"node": "./dist/index.js",
"node": {
"import": "./browser/index.js",
"require": "./dist/index.js"
},
"default": "./browser/index.js"
},
"./package.json": "./package.json",
"./util": {
"types": "./dist/util.d.ts",
"import": "./browser/dist/util.js",
"node": "./dist/util.js",
"node": {
"import": "./browser/dist/util.js",
"require": "./dist/util.js"
},
"default": "./browser/dist/util.js"
}
},
Expand Down

0 comments on commit b473856

Please sign in to comment.