diff --git a/packages/angular_devkit/build_angular/src/webpack/utils/helpers.ts b/packages/angular_devkit/build_angular/src/webpack/utils/helpers.ts index 832a2bc15a49..e133a495dd91 100644 --- a/packages/angular_devkit/build_angular/src/webpack/utils/helpers.ts +++ b/packages/angular_devkit/build_angular/src/webpack/utils/helpers.ts @@ -121,7 +121,7 @@ export function isPolyfillsEntry(name: string): boolean { export function getWatchOptions(poll: number | undefined): Configuration['watchOptions'] { return { poll, - ignored: poll === undefined ? undefined : 'node_modules/**', + ignored: poll === undefined ? '**/$_lazy_route_resources' : 'node_modules/**', }; }