unistore icon indicating copy to clipboard operation
unistore copied to clipboard

Resolving cjs files issues

Open Andarist opened this issue 7 years ago • 2 comments

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.

Andarist avatar Jan 19 '18 09:01 Andarist

Would something like this work? https://unpkg.com/[email protected]/worker/

developit avatar Jan 19 '18 18:01 developit

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

Andarist avatar Jan 20 '18 11:01 Andarist