From 7c70b9ec2f164c57ee60644e02406e92c3c132d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20Ole=C5=9B?= Date: Sun, 10 Jul 2022 16:43:38 +0200 Subject: [PATCH] fix: remove node_modules from built-in ignored dirs (#757) Ignoring node_modules creates more issues than it solves. We use webpack watcher anyway, so ignoring these files or not will not affect watcher performance. User can always add node_modules to ignored dirs manually in webpack config. Closes: #752 --- src/watch/inclusive-node-watch-file-system.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/watch/inclusive-node-watch-file-system.ts b/src/watch/inclusive-node-watch-file-system.ts index f388ca65..110996b1 100644 --- a/src/watch/inclusive-node-watch-file-system.ts +++ b/src/watch/inclusive-node-watch-file-system.ts @@ -11,7 +11,7 @@ import type { ForkTsCheckerWebpackPluginState } from '../plugin-state'; import type { WatchFileSystem } from './watch-file-system'; -const BUILTIN_IGNORED_DIRS = ['node_modules', '.git', '.yarn', '.pnp']; +const BUILTIN_IGNORED_DIRS = ['.git']; function createIsIgnored( ignored: string | RegExp | (string | RegExp)[] | undefined,