Closed
Description
Describe the Bug
I'm the author of wasm-run but it broke recently because the JS file (app.js) can't find the WASM file (app_bg.wasm).
As you can see in my code here I was relying on the fact that the name of the files were always "app.js" and "app_bg.wasm". But between 0.70 and 0.73 you made a change somewhere so the name used is now the crate's name that is compiled: myfrontend_bg.wasm
.
Because of that, the JS code can't load the WASM file anymore on projects using wasm-run.
Steps to Reproduce
- Create a new project with wasm-run:
cargo generate --git https://github.com/cecton/wasm-run-template.git -b main
- Run
serve
:cargo run -- serve
- Go on http://127.0.0.1:3000
- See error
Expected Behavior
The name won't change between patch versions. This is a breaking change.
Actual Behavior
Every project using wasm-run right now that does cargo update
will silently fail as this is a runtime error.