-
Notifications
You must be signed in to change notification settings - Fork 80
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
Question: how to specify the wasm path in the generated js file? #131
Comments
Currently this is not customizable, however you can use |
@slmjkdbtl To be more specific, you would do something like this: import init from "./path/to/js";
const wasm = init();
WebAssembly.instantiateStreaming(fetch("path/to/wasm"), wasm.imports).then((result) => {
const exports = wasm.initialize(result.instance);
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In the generated js file there's
is there a way to customize the wasm path (like
"wasm/main.wasm"
)?also is there a way to remove the
part (or like omit it in like production mode)?
The text was updated successfully, but these errors were encountered: