Skip to content

Commit 6bdc26c

Browse files
alan-agius4dgp1130
authored andcommitted
fix(@angular-devkit/build-angular): don't watch nested node_modules when polling is enabled
Previously the glob didn't catch nested `node_modules`. Closes #22163
1 parent 5488547 commit 6bdc26c

File tree

1 file changed

+1
-1
lines changed
  • packages/angular_devkit/build_angular/src/webpack/configs

1 file changed

+1
-1
lines changed

packages/angular_devkit/build_angular/src/webpack/configs/common.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ export async function getCommonConfig(wco: WebpackConfigOptions): Promise<Config
347347
watch: buildOptions.watch,
348348
watchOptions: {
349349
poll,
350-
ignored: poll === undefined ? undefined : 'node_modules/**',
350+
ignored: poll === undefined ? undefined : '**/node_modules/**',
351351
},
352352
performance: {
353353
hints: false,

0 commit comments

Comments
 (0)