From bf7b182bce97ea39cf96f5494430a2ab7f25eb32 Mon Sep 17 00:00:00 2001 From: Ammar Date: Sun, 30 Nov 2025 10:38:22 -0600 Subject: [PATCH] =?UTF-8?q?=F0=9F=A4=96=20fix:=20remove=20watch=20depth=20?= =?UTF-8?q?limit=20breaking=20HMR=20for=20nested=20files?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The depth: 3 setting added in #540 for Windows compatibility prevents Vite from detecting changes in directories deeper than 3 levels. Source files go up to 6 levels deep (e.g., src/browser/components/Settings/sections/). This broke HMR for most component files during 'make dev'. The other Windows-specific settings (polling, awaitWriteFinish) remain in place - only the depth restriction is removed. _Generated with `mux`_ --- vite.config.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/vite.config.ts b/vite.config.ts index 7c6330307..915494270 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -103,9 +103,6 @@ export default defineConfig(({ mode }) => ({ // If using polling, set a reasonable interval (in milliseconds) interval: 1000, - // Limit the depth of directory traversal - depth: 3, - // Additional options for Windows specifically ...(process.platform === 'win32' && { // Increase the binary interval for better Windows performance