-
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
Watch mode rebuilds cause touch/update to every output file #2104
Comments
This is intentional. After running esbuild, the build outputs should always be newer than the build inputs. Not doing this means build results could appear to be stale, which would be a bug in esbuild. If you want to change this behavior, you could use |
Thanks, for your answer. This would be a nice feature though (as an option), and more in line with how e.g. Rollup does partial rebuild. Working with |
I'm still thinking about your claim that all built files should at all times be newer than the source files. I agree this makes perfect sense after a fresh build. But I'm not sure I agree this holds in |
Hi. Is there a way to configure Esbuild in watch mode to only touch/rewrite the bundles (output files) that actually changed with the rebuild.
I'd even be willing to sacrifice a bit of speed.
Use case: I'm running a separate watch task to monitor the contents of the outdir, and perform further actions on the files that changed.
The fact that every output file fires a change-event on every incremental rebuild is making things very busy+slow.
I've done my best to hunt for answers, but to no avail. Any suggestions?
The text was updated successfully, but these errors were encountered: