Skip to content

Commit

Permalink
docs: use --debug hmr
Browse files Browse the repository at this point in the history
Co-authored-by: 翠 / green <green@sapphi.red>
  • Loading branch information
bluwy and sapphi-red authored Nov 8, 2023
1 parent 1bc383d commit 655cff5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/guide/troubleshooting.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ If you are running Vite with WSL2, Vite cannot watch file changes in some condit
If HMR is not handled by Vite or a plugin, a full reload will happen as it's the only way to refresh the state.

If HMR is handled but it is within a circular dependency, a full reload will also happen to recover the execution order. To solve this, try breaking the loop. You can run `DEBUG="vite:hmr" vite` to log the circular dependency path if a file change triggered it.
If HMR is handled but it is within a circular dependency, a full reload will also happen to recover the execution order. To solve this, try breaking the loop. You can run `vite --debug hmr` to log the circular dependency path if a file change triggered it.

## Build

Expand Down

0 comments on commit 655cff5

Please sign in to comment.