10000 fix(@angular-devkit/build-angular): don't watch nested `node_modules`… · angular-robot/angular-cli@647a5f0 · GitHub
[go: up one dir, main page]

Skip to content

Commit 647a5f0

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 angular#22163
1 parent 4d918ef commit 647a5f0

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

packages/angular_devkit/build_angular/src/webpack/utils/helpers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ export function getWatchOptions(
102102
): NonNullable<Configuration['watchOptions']> {
103103
return {
104104
poll,
105-
ignored: poll === undefined ? '**/$_lazy_route_resources' : 'node_modules/**',
105+
ignored: poll === undefined ? '**/$_lazy_route_resources' : '**/node_modules/**',
106106
};
107107
}
108108

0 commit comments

Comments
 (0)
0