We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b3fbc2b commit a14ad3dCopy full SHA for a14ad3d
src/watch/inclusive-node-watch-file-system.ts
@@ -19,7 +19,7 @@ export function createIsIgnored(
19
ignored: string | RegExp | (string | RegExp)[] | undefined,
20
excluded: string[]
21
): (path: string) => boolean {
22
- const ignoredPatterns = ignored ? (Array.isArray(ignored) ? ignored : [ignored]) : [];
+ const ignoredPatterns = ignored ? (Array.isArray(ignored) ? [...ignored] : [ignored]) : [];
23
24
const filteredExcluded = excluded.filter((pattern) => {
25
// Use `minimatch` to check if the path is a glob pattern.
0 commit comments