소스 검색

fix: windows hot reload (#3103)

Miles Murgaw 8 달 전
부모
커밋
6c69c2902c
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      packages/cli/src/serve/watcher.rs

+ 2 - 2
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,