Skip to content
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

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

Open
Alex134831 opened this issue Feb 26, 2025 · 1 comment
Open

Comments

@Alex134831
Copy link

Alex134831 commented Feb 26, 2025

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?

@hyrious
Copy link

hyrious commented Feb 26, 2025

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants