Skip to content

Commit 6cedde5

Browse files
committed
Add exports field to package.json
1 parent e007035 commit 6cedde5

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

package.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,27 @@
55
"main": "lib/index.js",
66
"module": "lib/index.mjs",
77
"types": "lib/index.d.ts",
8+
"exports": {
9+
"./package.json": "./package.json",
10+
".": {
11+
"types": "./lib/index.d.ts",
12+
"import": "./lib/index.mjs",
13+
"default": "./lib/index.js"
14+
},
15+
"./lib/plugin": {
16+
"default": "./lib/plugin/index.js"
17+
},
18+
"./lib/web": {
19+
"types": "./lib/web/index.d.ts",
20+
"import": "./lib/web/index.mjs",
21+
"default": "./lib/web/index.js"
22+
},
23+
"./lib/web/preact": {
24+
"types": "./lib/web/preact.d.ts",
25+
"import": "./lib/web/preact.mjs",
26+
"default": "./lib/web/preact.js"
27+
}
28+
},
829
"files": [
930
"lib"
1031
],

0 commit comments

Comments
 (0)