Skip to content

watch: preserve output when gracefully restarted

https://github.com/nodejs/node/pull/45717 added --watch-preserve-output:

Disable the clearing of the console when watch mode restarts the process.

However, when the process is "gracefully restarting" (if the process takes more than 500ms to stop), it is still clearing the console which is unexpected with --watch-preserve-output.

This PR fixes this bug.

Merge request reports

Loading