Turbopack HMR: Reload the page when server session changes (#68630)
It’s possible to the following scenario to occur:
- Browser loads a page and establishes HMR connection
- User quits the server, makes changes, and restarts the server
- The browser reloads, the user makes more changes, and the two reach an
inconsistent state
To avoid this, reload the browser when the server changes. This already
happened with webpack, so implement it for Turbopack.
Test Plan: `TURBOPACK=1 pnpm test-dev
test/development/basic/hmr.test.ts`
---------
Co-authored-by: Tobias Koppers <tobias.koppers@googlemail.com>