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 process lingers after successful build #985
Comments
By lingering do you mean it persists after node exits? The esbuild process persisting while node is running is by design; that's how esbuild works. What is your operating system and node version? |
no, it persists only while node process is active, but only when using environment: esbuild 0.9.2 OS ubuntu 20.10 nodejs 15.7.0 |
The only reason I added And repeated calls to The reason why the child process is kept around is to improve performance for repeated calls. The reason why the API doesn't expose fine-grained control over the lifetime of the child process is that I'm trying to keep the API simple and easy to use. Previously the old
Now there is just |
that answers it... only request would be to have an api such as |
Can you say more about your use case? It would be helpful for me to understand what you are building and why you need the service to no longer be running. |
I use esbuild in 3 different typical scenarios (always via api)
all-in-all, i'm covered. just having control over a child process is a good thing (and i understand your desire for simplicity) |
anyhow, i'm closing this issue as the original question has been answered. |
Hi @evanw apologies to resurrect an old thread. I use the esbuild API from within a deployment script, and I've noticed this issue lately where esbuild is still running after the rest of the deployment has completed. This prevents the deployment script from ever completing, and I need the script to complete so I can save and archive the log file. Any idea why this may only be occurring since I upgraded esbuild version recently? Here is my
|
@evanw in any case shouldn't the |
when esbuild is executed with
await esbuild.build()
, it will leaveesbuild
process lingering on the systemwhen esbuild is executed with
esbuild.buildSync()
, it works just finein both cases, no issues with build itself and it completes as expected, just in async version, esbuild process is left lingering
process left lingering looks like:
node_modules/esbuild/bin/esbuild --service=0.9.2 --ping
quick reproduction:
this is new behavior in 0.9.x (tested with 0.9.2)
this is not a priority issue as no functionality is impaired
The text was updated successfully, but these errors were encountered: