esbuild icon indicating copy to clipboard operation
esbuild copied to clipboard

Option to disable "Delete output files when a build fails in watch mode"

Open Alex134831 opened this issue 10 months ago • 1 comments

https://github.com/evanw/esbuild/releases/tag/v0.25.0

I need to stop a build by throwing in onStart. But with v0.25 it messes up the files as it clears the folder. Or is there a better way to stop a build?

I need to stop a rebuild that I trigger by writing a file in the build script. Or is there a way to not trigger rebuild for this?

Alex134831 avatar Feb 26 '25 14:02 Alex134831

A workaround is you can disable write (write: false) and get the output files or errors in the onEnd callback and perform the changes on file system manually.

hyrious avatar Feb 26 '25 14:02 hyrious