Skip to content

Commit b473856

Browse files
committed
fix: add conditional exports for node
1 parent 413de44 commit b473856

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

package.json

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,19 @@
2727
"exports": {
2828
".": {
2929
"types": "./dist/index.d.ts",
30-
"import": "./browser/index.js",
31-
"node": "./dist/index.js",
30+
"node": {
31+
"import": "./browser/index.js",
32+
"require": "./dist/index.js"
33+
},
3234
"default": "./browser/index.js"
3335
},
3436
"./package.json": "./package.json",
3537
"./util": {
3638
"types": "./dist/util.d.ts",
37-
"import": "./browser/dist/util.js",
38-
"node": "./dist/util.js",
39+
"node": {
40+
"import": "./browser/dist/util.js",
41+
"require": "./dist/util.js"
42+
},
3943
"default": "./browser/dist/util.js"
4044
}
4145
},

0 commit comments

Comments
 (0)