We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 694b740 commit 95a8564Copy full SHA for 95a8564
packages/vite-plugin-checker/src/glob.ts
@@ -26,10 +26,15 @@ export function createIgnore(_root: string, pattern: string | string[] = []) {
26
return true
27
}
28
const relativePath = relative(root, path).replace(/\\/g, '/')
29
- return (
30
- !!relativePath &&
31
- !matcher(relativePath) &&
32
- !(_stats ?? statSync(path)).isDirectory()
33
- )
+ try {
+ return (
+ !!relativePath &&
+ !matcher(relativePath) &&
+ !(_stats ?? statSync(path)).isDirectory()
34
+ )
35
+ } catch {
36
+ // do not ignore files that have been deleted as the watcher is iterating on them
37
+ return false
38
+ }
39
40
0 commit comments