Hey there, docker compose recently-ish added support for file watcher https://docs.docker.com/compose/file-watch/ which allows to rebuild containers, restart, or sync files as they change on the host. One of the key benefit, is that it is not using bind mounts and can ignore stuff like node_modules.
I was wondering if there was (long term?) plans to support something like that? Rebuild on file change, sync files on change, etc. It looks like Mutagen is under the hood.
On this note, is local "live" development where developer is running and building container locally and iterating on it with hot reload intended to be first-class use-case in Dagger? I see we can use WithMountedDirectory, but isn't that more akin to binding a mount? Also it would not enable rebuilding on file change beyond starting the dev server with hot reload enabled (e.g.: WithExec([]string{"yarn", "start"}) and having it doing the hot reloading).