From 81e72881199bb22df0626c50cb2d029c63e56be9 Mon Sep 17 00:00:00 2001 From: Valentin Palkovic Date: Mon, 23 Oct 2023 12:23:04 +0200 Subject: [PATCH] Core-Server: Ingore all node_module folders for watchpack --- code/lib/core-server/src/utils/watch-story-specifiers.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/lib/core-server/src/utils/watch-story-specifiers.ts b/code/lib/core-server/src/utils/watch-story-specifiers.ts index a0d1818be720..245639579748 100644 --- a/code/lib/core-server/src/utils/watch-story-specifiers.ts +++ b/code/lib/core-server/src/utils/watch-story-specifiers.ts @@ -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)),