mirror of
https://github.com/usebruno/bruno.git
synced 2025-07-12 10:15:26 +02:00
feat: set the polling mode based on path type
This commit is contained in:
@ -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,
|
||||
|
Reference in New Issue
Block a user