Skip to content
This repository was archived by the owner on Mar 14, 2025. It is now read-only.

Commit 464ab93

Browse files
authored
Add exports to package.json (#286)
This allows consumers to import the ESM or UMD build depending on the project type. Fixes #283
1 parent 32d6a1b commit 464ab93

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
"main": "dist/index.umd.js",
66
"module": "dist/esm/index.js",
77
"types": "dist/types/index.d.ts",
8+
"exports": {
9+
"import": "./dist/esm/index.js",
10+
"require": "./dist/index.umd.js"
11+
},
812
"files": [
913
"src",
1014
"dist",

0 commit comments

Comments
 (0)