feat: set the polling mode based on path type

This commit is contained in:
Gyunseo Lee 2023-12-18 17:56:12 +09:00
parent eb340d4ace
commit 9f6890b769

View File

@ -412,7 +412,7 @@ class Watcher {
setTimeout(() => {
const watcher = chokidar.watch(watchPath, {
ignoreInitial: false,
usePolling: false,
usePolling: watchPath.startsWith("\\\\") ? true : false,
ignored: (path) => ['node_modules', '.git'].some((s) => path.includes(s)),
persistent: true,
ignorePermissionErrors: true,