You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(vite): cover the fail-open fallback on Linux before Node 20
The vite plugin's fail-open watcher -- engaged only when Retrigger degrades
mid-session -- used fs.watch(root, { recursive: true }), which does not exist on
Linux until Node 20. On node18-linux the recursive attach threw, the catch left
the tree uncovered, and a post-degradation edit never reached server.watcher, so
the CI matrix's node18-linux leg failed ("keeps delivering events through a
fallback watcher after mid-session degradation" timed out) while node20/22 and
macOS/Windows (native recursive) passed.
When recursive fs.watch is unavailable, fall back to one non-recursive handle
per directory, extended to subdirectories as they appear -- the same shape the
JS engine uses where the platform has no recursive watch. Verified both the
per-directory path (delivers the event) and the recursive path (unregressed).
0 commit comments