From 6c69c2902cff77a68370c0c5ebe3c8fc2d790d93 Mon Sep 17 00:00:00 2001 From: Miles Murgaw Date: Fri, 25 Oct 2024 21:48:47 -0400 Subject: [PATCH] fix: windows hot reload (#3103) --- packages/cli/src/serve/watcher.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/cli/src/serve/watcher.rs b/packages/cli/src/serve/watcher.rs index 534369085..41e79ebe6 100644 --- a/packages/cli/src/serve/watcher.rs +++ b/packages/cli/src/serve/watcher.rs @@ -154,8 +154,8 @@ fn create_notify_watcher( EventKind::Modify(ModifyKind::Name(_)) => true, // The primary modification event on WSL's poll watcher. EventKind::Modify(ModifyKind::Metadata(MetadataKind::WriteTime)) => true, - // Catch-all for unknown event types. - EventKind::Modify(ModifyKind::Any) => false, + // Catch-all for unknown event types (windows) + EventKind::Modify(ModifyKind::Any) => true, EventKind::Modify(ModifyKind::Metadata(_)) => false, // Don't care about anything else. EventKind::Create(_) => true,