From cef613c63c90aaa98dadb945dff4972640b397de Mon Sep 17 00:00:00 2001 From: Filipe Silva Date: Wed, 9 Aug 2017 13:32:57 +0100 Subject: [PATCH] fix(@ngtools/webpack): don't use src dir as a resource We add either `src/` or `src/$$_gendir/` directories as the lazy route resource, which causes rebuilds whenever anything changes there. This PR makes it always use the `src/$$_gendir/` special directory. @brocco this should also fix your local failing poll test. Fix #6238 Close #6959 --- packages/@ngtools/webpack/src/plugin.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/@ngtools/webpack/src/plugin.ts b/packages/@ngtools/webpack/src/plugin.ts index 01c87d113ad2..fe7eb6720b84 100644 --- a/packages/@ngtools/webpack/src/plugin.ts +++ b/packages/@ngtools/webpack/src/plugin.ts @@ -334,8 +334,7 @@ export class AotPlugin implements Tapable { } this.done.then(() => { - result.resource = this.skipCodeGeneration ? this.basePath : this.genDir; - result.recursive = true; + result.resource = this.genDir; result.dependencies.forEach((d: any) => d.critical = false); result.resolveDependencies = (_fs: any, _resource: any, _recursive: any, _regExp: RegExp, cb: any) => {