Skip to content

Commit 3bae37d

Browse files
committed
Use conditional exports (used by Vite/esbuild)
1 parent 555f4ab commit 3bae37d

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,11 @@
2424
"main": "./src/index.cjs",
2525
"browser": "./src/index.mjs",
2626
"exports": {
27-
"import": "./src/index.js",
28-
"require": "./src/index.cjs"
27+
"node": {
28+
"import": "./src/index.js",
29+
"require": "./src/index.cjs"
30+
},
31+
"default": "./src/index.mjs"
2932
},
3033
"scripts": {
3134
"build": "rollup --config",

0 commit comments

Comments
 (0)