Skip to content

Commit

Permalink
fix(@ngtools/webpack): don't use src dir as a resource
Browse files Browse the repository at this point in the history
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 angular#6238
Close angular#6959
  • Loading branch information
filipesilva committed Aug 10, 2017
1 parent a4276c0 commit 04cb25f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/@ngtools/webpack/src/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit 04cb25f

Please sign in to comment.