diff --git a/src/cli/build.rs b/src/cli/build.rs index 88760e2f..4cfe9f77 100644 --- a/src/cli/build.rs +++ b/src/cli/build.rs @@ -43,6 +43,7 @@ pub fn build(options: BuildCommand) -> Result<(), anyhow::Error> { log::trace!("Constructing in-memory filesystem"); let vfs = Vfs::new_default(); + vfs.set_watch_enabled(options.watch); let session = ServeSession::new(vfs, &options.absolute_project())?; let mut cursor = session.message_queue().cursor();