Skip to content

ESM version #524

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

Open
jimmywarting opened this issue Aug 13, 2022 · 1 comment · May be fixed by #609
Open

ESM version #524

jimmywarting opened this issue Aug 13, 2022 · 1 comment · May be fixed by #609

Comments

@jimmywarting
Copy link

jimmywarting commented Aug 13, 2022

could you maybe build a esm version that can be imported and uses import.meta.url to load wasm files relative to the cdn somebody is using?

would just like to be able to do import it.
the hole umd commonjs loadfile is complicated.

@jimmywarting
Copy link
Author

that way you can also use top level await and load wasm file before anything gets exported

kant2002 added a commit to kant2002/sql.js that referenced this issue Apr 12, 2025
I do not sure that I will understand whole impact on the EMCC modularization, but at least these fixes in the modularization works for me in the Blazor applciation, which is by itself ESM environment.

closes sql-js#524
@kant2002 kant2002 linked a pull request Apr 12, 2025 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant