Skip to content

Commit f28af02

Browse files
committed
chore(package.json): support conditional exports
- esm, cjs
1 parent 9c7f9c6 commit f28af02

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

package.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@
55
"main": "dist/index.cjs.js",
66
"module": "dist/index.esm.js",
77
"types": "dist/index.d.ts",
8+
"exports": {
9+
".": {
10+
"import": "./dist/index.esm.js",
11+
"require": "./dist/index.cjs.js",
12+
"types": "./dist/index.d.ts"
13+
}
14+
},
815
"sideEffects": false,
916
"scripts": {
1017
"prepublishOnly": "npm run build",

0 commit comments

Comments
 (0)