Hi, I'm facing issues when using this package together with wasm-bindgen and having the return type as JsValue. I've tried loading the same wasm module using webpack without any issues, suggesting that the issue is with how the wasm module is loaded.
Changing the signature to return string fixes the issue...
Hi, I'm facing issues when using this package together with wasm-bindgen and having the return type as JsValue. I've tried loading the same wasm module using webpack without any issues, suggesting that the issue is with how the wasm module is loaded.
Changing the signature to return string fixes the issue...
https://github.com/fredrikjacobson/wasm-jsvalue-undefined contains a reproduction where
and checking the console log yields undefined. Running
npm start
from./rust-wasm
however will print the correct js object.I would guess that some part of the glue-code from wasm-bindgen somehow gets removed.
Essentially switching from
to
fixes the problem by returning string instead.
Any idea for why I'm facing issue using this plugin vs. webpack?
Thanks