Skip to content

Commit

Permalink
Merge pull request #24553 from storybookjs/valentin/ignore-all-node_m…
Browse files Browse the repository at this point in the history
…odules-in-watchpack

Core-Server: Ingore all node_module folders for watchpack
  • Loading branch information
valentinpalkovic authored Oct 23, 2023
2 parents 4ee42ac + 81e7288 commit 58b6b0a
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 58b6b0a

Please sign in to comment.