Vite dev server crashes if error is introduced in vite.config.js
#12375
Labels
p3-minor-bug
An edge case that only affects very specific usage (priority)
Describe the bug
If you run
vite dev
then introduce a syntax error invite.config.js
, the dev server tries and fails to restart, and the process crashes.Ideally the process would stay alive, and gracefully recover once the error is fixed. Even better would be if the server survived, if only to report the error, though that's probably somewhat trickier.
Reproduction
https://github.com/Rich-Harris/vite-dev-server-crashes
Steps to reproduce
Instructions in the repro README
System Info
Used Package Manager
pnpm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: