Skip to content

Commit ca85d5b

Browse files
committed
fix(esm): add exports for esm
Closes #196
1 parent f435506 commit ca85d5b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

package.json

+8
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,14 @@
3030
"module": "./dist/index.mjs",
3131
"browser": "./dist/index.min.js",
3232
"types": "./dist/index.d.ts",
33+
"exports": {
34+
".": {
35+
"require": "./dist/index.cjs",
36+
"import": "./dist/index.mjs",
37+
"types": "./dist/index.d.ts",
38+
"default": "./dist/index.mjs"
39+
}
40+
},
3341
"files": [
3442
"dist/",
3543
"src/"

0 commit comments

Comments
 (0)