Commit c2eba54
authored
fix: keep the Vite dev watcher out of src-tauri (#1646)
`tauri dev` starts Vite as its beforeDevCommand and then runs cargo in the
same tree, so the watcher crawled src-tauri/target while cargo was writing
into it. On Windows that threw an unhandled EBUSY from chokidar and killed
the dev server, surfacing only as "beforeDevCommand terminated with a
non-zero status code". Nothing under src-tauri feeds the frontend bundle,
and on Linux this also stops ~95k build artifacts from consuming inotify
watches.1 parent 9358c91 commit c2eba54
1 file changed
Lines changed: 14 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
901 | 901 | | |
902 | 902 | | |
903 | 903 | | |
| 904 | + | |
| 905 | + | |
| 906 | + | |
| 907 | + | |
| 908 | + | |
| 909 | + | |
| 910 | + | |
| 911 | + | |
| 912 | + | |
| 913 | + | |
| 914 | + | |
| 915 | + | |
| 916 | + | |
| 917 | + | |
904 | 918 | | |
905 | 919 | | |
906 | 920 | | |
| |||
0 commit comments