-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
esbuild --watch can't run in background when started from shell script #1511
Comments
try:
or
|
tl;dr Redirect pipe
|
I've had a similar problem when I was trying to run that as a preLaunchTask for a VS Code extension. However, in my case the fix was to set a correct "problemWatcher" to be |
It looks as if you run
esbuild --watch
as a background process in a shell script (with "&") it exits immediately. Probably related to issue #1449, as it didn't do this in 0.12.16. Example:To prevent this, it would probably be best to hide the exit-on-stdin-close behavior behind a
--watch-stdin
option. I don't see any other bundlers with a more elegant solution.The text was updated successfully, but these errors were encountered: