Using --target=wasm32-unknown-emscripten, -s WASM=1, and firefox developer edition it is possible to get source maps
When I run “cargo web --target=wasm32-unknown-emscripten” I am not seeing source maps. Is there a wa yto tell cargo web to use “-s WASM=1” ?
(Been since before Firefox nightly release I last read about source maps.)
Source maps are now even enabled in the regular release of Firefox.
From what I gather it used to be emscripten many months ago so maybe the github history can answer your question.
I believe this is the script: wasm-sourcemap.py. It’s inside the emscripten repo.
Also, I think the README in that rust-wasm-hey repo is out-of-date/not complete. The Makefile has the full command with all of the additional parameters to wasm-sourcemap.py. Though, I haven’t gotten it to work myself.
I’m a bit disappointed that there isn’t a great solution to this yet. It would make developing web apps in rust much more viable.