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 512d83d
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
".": {
"types": "./dist/index.d.ts",
"node": {
"import": "./browser/index.js",
"require": "./dist/index.js"
},
"default": "./browser/index.js"
Expand All @@ -37,10 +36,17 @@
"./util": {
"types": "./dist/util.d.ts",
"node": {
"import": "./browser/dist/util.js",
"require": "./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"
}
},
"scripts": {
Expand Down

0 comments on commit 512d83d

Please sign in to comment.