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

Allow library to be used with importmaps for browsers without bundlers #44

Open
kaeedo opened this issue Feb 3, 2022 · 3 comments
Open

Comments

@kaeedo
Copy link

kaeedo commented Feb 3, 2022

Hello.
etebase-js at this point exposes an ES module entrypoint, but that isn't enough for use with import maps. If I understood correctly, the import maps get hung up on the crypto import of lib-sodium. I'm not sure how to fix this, but I believe it has something to do with export maps which explicitly state entyrpoints for submodules.

Thanks

https://github.com/WICG/import-maps

https://docs.skypack.dev/package-authors/package-checks#export-map

@tasn
Copy link
Member

tasn commented Feb 3, 2022

libsodium is wasm, maybe that's the problem?

@kaeedo
Copy link
Author

kaeedo commented Feb 4, 2022

I believe wasm works with export maps, but the more I'm playing with it, it seems to be an upstream problem with the libsodium.js dependency.

@tasn
Copy link
Member

tasn commented Feb 4, 2022

I think we are very straightforward in what we do here. I mean, a lot of JS code, but it's just JS + wasm from sodium.

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