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

Investigate support for separate WebAssembly instantiation #183

Open
mdaines opened this issue Aug 2, 2023 · 0 comments
Open

Investigate support for separate WebAssembly instantiation #183

mdaines opened this issue Aug 2, 2023 · 0 comments

Comments

@mdaines
Copy link
Owner

mdaines commented Aug 2, 2023

Currently Viz.js bundles its WebAssembly code, which it passes to the Emscripten module for instantiation with WebAssembly.instantiate. This means that a user of Viz.js can't call WebAssembly.instantiate separately to instantiate the WebAssembly module which would reduce the total download size and be useful for running the library in a worker.

In order to support this, it looks like Viz.js would need to make the importObject used by the Emscripten module accessible somehow.

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

1 participant