-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add unresolved question about file watching heuristics
- Loading branch information
Showing
1 changed file
with
18 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FWIW in larger projects where you have multiple watchers for different subcrates in the workspace needing to rebuild whenever something in the workspace changed would be no fun since wasted builds means time that other things don’t get to build because the build directory is locked.
I am working on a project with like .. 8+ watchers running (not 8 are for wasm-pack but a couple of them are.)
Sorry for the word jumble .. on mobile .. but basically calling out that changing for anything besides dependencies of the crate in question would slow me down in my larger projects where I am working on multiple workspace crates with very different watching needs.
Also - in my largest project I will include things into the binary from pretty arbitrary folders. So being able to specify folders or files to watch would be nice.
FWIW I’m getting a lot of mileage out of watchexec in my larger more complicated projects that have atypical watching needs .. so the first place that I’d use wasm-pack is in smaller one off demos / tutorials / etc where watching everything is mostly fine.
Will be lovely not needing to tell people to install a static server and a watcher on top of installing wasm-pack!
Hope the feedback helps!