Skip to content

Commit

Permalink
Add exports to package.json (#286)
Browse files Browse the repository at this point in the history
This allows consumers to import the ESM or UMD build depending on the project type.

Fixes #283
  • Loading branch information
aethr authored Feb 17, 2024
1 parent 32d6a1b commit 464ab93
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
"main": "dist/index.umd.js",
"module": "dist/esm/index.js",
"types": "dist/types/index.d.ts",
"exports": {
"import": "./dist/esm/index.js",
"require": "./dist/index.umd.js"
},
"files": [
"src",
"dist",
Expand Down

0 comments on commit 464ab93

Please sign in to comment.