Skip to content

Commit 7c70b9e

Browse files
authored
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
1 parent 7837179 commit 7c70b9e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/watch/inclusive-node-watch-file-system.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import type { ForkTsCheckerWebpackPluginState } from '../plugin-state';
1111

1212
import type { WatchFileSystem } from './watch-file-system';
1313

14-
const BUILTIN_IGNORED_DIRS = ['node_modules', '.git', '.yarn', '.pnp'];
14+
const BUILTIN_IGNORED_DIRS = ['.git'];
1515

1616
function createIsIgnored(
1717
ignored: string | RegExp | (string | RegExp)[] | undefined,

0 commit comments

Comments
 (0)