esbuild
esbuild copied to clipboard
Option to disable "Delete output files when a build fails in watch mode"
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?
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.