unistore
unistore copied to clipboard
Resolving cjs files issues
unistore/preact
always resolves to a cjs file
and I think that unistore/full/preact
resolves to a cjs file too, there are .es.js
files in this directory, but Im not aware if any tool picks that up automatically over regular .js
files
The issue can be fixed by introducing "proxy" directories like this. Ideally such directories could be outputted by microbundle
.
Would something like this work? https://unpkg.com/[email protected]/worker/
This would work if we make additional package.json for this directory - otherwise bundlers do not know that they should pick up .es.js
file