Open
Description
Describe the Bug
Running yarn start
should start a dev-server that will recompile webpack bundle every time the rust source file is changed, but it fails to do so after a few changes.
Steps to Reproduce
- In any directory, run
npm init rust-webpack my-app
to clone the template. cd my-app
and thennpm start
to start the dev server.- Edit
src/lib.rs
, for example, duplicate the lineconsole::log_1(...)
. The browser will reload and we could seeHello world!
get print twice in the console. - Edit
src/lib.rs
, for example, duplicate the lineconsole::log_1(...)
again. - See below.
If applicable, add a link to a test case (as a zip file or link to a repository we can clone).
Expected Behavior
The wasm file get recompiled, the bundle is rebuilt and the browser reloads.
Actual Behavior
The wasm file get recompiled, however, the bundle is never rebuild and the browser does not reload. Manually reload the browser does not solve the issue because the bundle isn't rebuilt.