Skip to content

Commit f11082b

Browse files
🔨 config(build): Set source and exports fields in package.json.
1 parent f5db4d4 commit f11082b

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

package.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,19 @@
2929
"untruth"
3030
],
3131
"sideEffects": false,
32+
"source": "src/index.js",
3233
"main": "dist/index.js",
34+
"module": "dist/index.module.js",
35+
"umd:main": "dist/index.umd.js",
36+
"unpkg": "dist/index.umd.js",
37+
"exports": {
38+
".": {
39+
"browser": "./dist/index.module.js",
40+
"umd": "./dist/index.umd.js",
41+
"require": "./dist/index.js",
42+
"default": "./dist/index.modern.js"
43+
}
44+
},
3345
"files": [
3446
"dist"
3547
],

0 commit comments

Comments
 (0)