Skip to content

Commit

Permalink
fix: conditional exports in package.json
Browse files Browse the repository at this point in the history
The exports need to reference valid file paths _after_ the build, not
before it.
That they were invalid broke usage, at least with Vite.
This commit resolves #504.
  • Loading branch information
philipp-tailor committed Apr 19, 2022
1 parent 31b3f69 commit 922bb46
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
"Philipp Tailor (http://schneiders.space)"
],
"exports": {
"import": "./index.js",
"default": "./index.js"
"import": "./dist/index.mjs",
"default": "./dist/index.js"
},
"main": "dist/index.js",
"module": "dist/index.mjs",
Expand Down

0 comments on commit 922bb46

Please sign in to comment.