Skip to content

Commit f2604b2

Browse files
committed
feat: add "exports" map for native ESM support
1 parent 76a7d1d commit f2604b2

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
@@ -20,6 +20,13 @@
2020
"build": "bundt",
2121
"test": "uvu -r esm test"
2222
},
23+
"exports": {
24+
".": {
25+
"import": "./dist/index.mjs",
26+
"require": "./dist/index.js"
27+
},
28+
"./package.json": "./package.json"
29+
},
2330
"files": [
2431
"*.d.ts",
2532
"dist"

0 commit comments

Comments
 (0)