Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolving cjs files issues #62

Open
Andarist opened this issue Jan 19, 2018 · 2 comments
Open

Resolving cjs files issues #62

Andarist opened this issue Jan 19, 2018 · 2 comments

Comments

@Andarist
Copy link

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.

@developit
Copy link
Owner

Would something like this work?
https://unpkg.com/stockroom@1.0.0/worker/

@Andarist
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants