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

Importing WebAssembly modules into WebAssembly modules #2

Open
ttraenkler opened this issue May 8, 2018 · 0 comments
Open

Importing WebAssembly modules into WebAssembly modules #2

ttraenkler opened this issue May 8, 2018 · 0 comments

Comments

@ttraenkler
Copy link

ttraenkler commented May 8, 2018

How is it possible to break up your WebAssembly module into several modules that import each other similar to ES modules? For example the analogous code in Javascript with ES modules would be sth like this:

a.js: export const a = 3;
b.js: import { a } from './a'

How would that be solved inside the WASM module itself vs. how would that be solved on the Javascript side? Could you sketch some example code how to best approach this problem? Would the result be shipped as a single wasm file or multiple?

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