diff --git a/CHANGELOG.md b/CHANGELOG.md index ac247dc67f6..a18e3478e79 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,10 @@ However, there are cases when it makes sense for esbuild's watch mode to never exit. One such case is within a short-lived VM where the lifetime of all processes inside the VM is expected to be the lifetime of the VM. Previously you could easily do this by piping the output of a long-lived command into esbuild's stdin such as `sleep 999999999 | esbuild --watch &`. However, this possibility often doesn't occur to people, and it also doesn't work on Windows. People also sometimes attempt to keep esbuild open by piping an infinite stream of data to esbuild such as with `esbuild --watch { if (isToPathJS) { // We need "node" before this command since it's a JavaScript file - validateBinaryVersion('node', toPath); + validateBinaryVersion(process.execPath, toPath); } else { // This is no longer a JavaScript file so don't run it using "node" validateBinaryVersion(toPath);