You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This isn't possible with esbuild's built-in watch mode but it's trivial to use whatever external watch mode library you prefer instead of esbuild's built-in watch mode. Just turn off esbuild's watch mode and use incremental builds instead, then call rebuild() whenever your watch mode library detects a change.
Since this issue was filed, esbuild has improved its watch mode to reduce the cases where rebuilds happen due to file system changes that are unrelated to the build: #1676. So I'm closing this issue both because you can bring your own watch mode if you choose, and because the situation has already been improved.
It would be great if it there was a way to exclude/ignore files and/or directory when using
watch: true
(e.g.node_modules
).Maybe this is already possible via plugins as well?
The text was updated successfully, but these errors were encountered: