-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Process will exit when watch mode is on #730
Comments
I have detected the same problem.
|
I tried your proposal @susiwen8 and I got an error on rebuild
|
Thanks for the report. Clearly I was rushing when I got this out last night. Using the Instead of doing this: esbuild.build({...}) Do this for now: esbuild.startService().then(service => service.build({...})) I'll get this fixed today. Thanks again for the report, and sorry about the trouble. |
Thank you @evanw for taking this one quickly and for all the hard work! |
Hey @evanw, It looks like this is still an issue when attempting to use I am on Would you like me to open a new issue for this? |
Is the error message |
Ah yes sorry - you're right. Is there a similar callback to |
The local server doesn't monitor for file changes at all. It only rebuilds when new HTTP requests come in. If you want to detect file changes too I suppose you could run esbuild twice, once for the local web server and once for the file watcher. |
Hi, amazing work on
watch mode
, but I have encounter underwatch mode
, after first build, process will exit, which I think it shouldn't happen.Here is the script I use
pretty much the same code with doc.
I try to debug myself, found out this line would cause this issue. So what I propose as follow
However I don't have faith on this, so would you confirm it? If I were right, I could make a PR for it.
The text was updated successfully, but these errors were encountered: