fix(core): bound recursive file watching (#35323)
This commit is contained in:
parent
610e618bc5
commit
945d1c8cb2
4 changed files with 57 additions and 8 deletions
|
|
@ -45,7 +45,7 @@ const FILES = [
|
|||
"**/.nyc_output/**",
|
||||
]
|
||||
|
||||
export const PATTERNS = [...FILES, ...FOLDERS]
|
||||
export const PATTERNS = [...FILES, ...FOLDERS, `**/{${Array.from(FOLDERS).join(",")}}/**`]
|
||||
|
||||
export function match(filepath: string, opts?: { extra?: string[]; whitelist?: string[] }) {
|
||||
for (const pattern of opts?.whitelist || []) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue