Closed iamsbro closed 5 months ago
Thanks for this. Using "dist" in the "svelte" entry caused this issue. Svelte is a compiler so it wants access to the source files which does make sense (that way it can compile them together with the app, tree shake etc). Can you please bump the version in package.json and add an entry in release-notes.md?
The package types were not able to be resolved with the new
exports
field being added. This PR fixes that by defining theimport
andrequire
properties inexports
.References:
Side note: I'm not sure why the
svelte
property is targetingsrc/index.js
rather thandist/index.js
. I tested usingdist
locally and my SvelteKit project compiled and ran without issues.