Skip to content

Commit

Permalink
fix: remove node_modules from built-in ignored dirs (#757)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
piotr-oles authored Jul 10, 2022
1 parent 7837179 commit 7c70b9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/watch/inclusive-node-watch-file-system.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 7c70b9e

Please sign in to comment.