Skip to content

Commit fa236d4

Browse files
v 1 r t legoist
andauthored
feat: Add native ESM support (#86)
* Add native ESM support * should be mod.js Co-authored-by: Kevin Titor <0x142857@gmail.com>
1 parent 1312d62 commit fa236d4

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

package.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,16 @@
77
"type": "git"
88
},
99
"main": "dist/index.js",
10+
"module": "mod.js",
1011
"types": "dist/index.d.ts",
12+
"exports": {
13+
".": {
14+
"import": "./mod.js",
15+
"require": "./dist/index.js"
16+
},
17+
"./package.json": "./package.json",
18+
"./": "./"
19+
},
1120
"files": [
1221
"dist",
1322
"!**/__test__/**",

0 commit comments

Comments
 (0)