Skip to content

Commit 2f62728

Browse files
authored
🤖 fix: remove watch depth limit breaking HMR for nested files (#802)
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. cc @ibetitsmike _Generated with `mux`_
1 parent 0085b92 commit 2f62728

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

vite.config.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,6 @@ export default defineConfig(({ mode }) => ({
103103
// If using polling, set a reasonable interval (in milliseconds)
104104
interval: 1000,
105105

106-
// Limit the depth of directory traversal
107-
depth: 3,
108-
109106
// Additional options for Windows specifically
110107
...(process.platform === 'win32' && {
111108
// Increase the binary interval for better Windows performance

0 commit comments

Comments
 (0)