From e0faf0c5dc0eef1843005d0da2acaa20171e222c Mon Sep 17 00:00:00 2001 From: RyanZim <17342435+RyanZim@users.noreply.github.com> Date: Wed, 11 Nov 2026 17:49:43 +0000 Subject: [PATCH] Fix chokidar v6 polling options Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- index.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 6319325..4e29b96 100755 --- a/index.js +++ b/index.js @@ -120,8 +120,9 @@ try { printVerbose(pc.dim('\nWaiting for file changes...')) const deps = await dependencies(results) const watcher = chokidar.watch(input.concat(deps), { - usePolling: argv.poll, - interval: argv.poll && typeof argv.poll === 'number' ? argv.poll : 100, + backend: argv.poll ? 'polling' : 'auto', + pollingInterval: + argv.poll && typeof argv.poll === 'number' ? argv.poll : 100, awaitWriteFinish: { stabilityThreshold: 50, pollInterval: 10,