Skip to content

Commit

Permalink
Core-Server: Ingore all node_module folders for watchpack
Browse files Browse the repository at this point in the history
  • Loading branch information
valentinpalkovic committed Oct 23, 2023
1 parent 4ee42ac commit 81e7288
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/lib/core-server/src/utils/watch-story-specifiers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export function watchStorySpecifiers(
const wp = new Watchpack({
// poll: true, // Slow!!! Enable only in special cases
followSymlinks: false,
ignored: ['**/.git', 'node_modules'],
ignored: ['**/.git', '**/node_modules'],
});
wp.watch({
directories: uniq(specifiers.map((ns) => ns.directory)),
Expand Down

0 comments on commit 81e7288

Please sign in to comment.