瀏覽代碼

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,