-
Notifications
You must be signed in to change notification settings - Fork 409
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
--no-modules
for wasm-pack
#317
Comments
i agree that wasm-pack should support all the options that wasm-bindgen has! i am curious which bundlers need to use |
The default wasm loader of Parcel doesn’t support an export object. So I need to replace the wash loader with the no ES module js file generated by wasmbindgen.
Friday, September 21, 2018, 00:45 +0800 from notifications@github.com <notifications@github.com>:
…i agree that wasm-pack should support all the options that wasm-bindgen has! i am curious which bundlers need to use --no-modules (just for my own edification!). thanks for filing this :)
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub , or mute the thread .
|
oh! interesting. we've been working with the Parcel team, and i am aware that the current way they handle wasm is slightly different from the webpack use case. thanks for the information. tagging in @jamiebuilds - is supporting for an export object in the wasm loader on the roadmap? would like to hear your general thoughts on this (and anyone else on the team that might be working on this!) thanks :D |
@catsigma i'm gonna work on getting this in for 0.5.0 case (regardless of how the follow up with the Parcel folks shakes out) thanks again so much for the info! it's very helpful :) |
Thanks so much. 👍
Friday, September 21, 2018, 23:03 +0800 from notifications@github.com <notifications@github.com>:
…
@catsigma i'm gonna work on getting this in for 0.5.0 case (regardless of how the follow up with the Parcel folks shakes out) thanks again so much for the info! it's very helpful :)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub , or mute the thread .
|
oh! as a followup- @catsigma what |
Hey @catsigma, could you share what you're doing in https://github.com/catsigma/parcel-plugin-wasmbindgen ? Just trying to figure out what Parcel is missing |
@jamiebuilds What I've done is pretty simple.
The problem in Parcel is that the default wasm loader doesn't contain an |
@ashleygwilliams sorry, but I don't know what is the key in |
@ashleygwilliams @jamiebuilds github: https://github.com/catsigma/parcel-plugin-wasm.rs And it supports both Thank you both. |
💡 Feature description
--no-modules
comes withwasm-bindgen-cli
and it's needed for some bundlers.The text was updated successfully, but these errors were encountered: