Skip to content

Commit

Permalink
refactor: use separate prefix for esm package entries
Browse files Browse the repository at this point in the history
  • Loading branch information
antongolub committed Jul 4, 2024
1 parent b473856 commit 04e5154
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,19 +27,21 @@
"exports": {
".": {
"types": "./dist/index.d.ts",
"node": {
"import": "./browser/index.js",
"require": "./dist/index.js"
},
"node": "./dist/index.js",
"default": "./browser/index.js"
},
"./package.json": "./package.json",
"./util": {
"types": "./dist/util.d.ts",
"node": {
"import": "./browser/dist/util.js",
"require": "./dist/util.js"
},
"node": "./dist/util.js",
"default": "./browser/dist/util.js"
},
"./esm": {
"types": "./dist/index.d.ts",
"default": "./browser/index.js"
},
"./esm/util": {
"types": "./dist/util.d.ts",
"default": "./browser/dist/util.js"
}
},
Expand Down

0 comments on commit 04e5154

Please sign in to comment.