Skip to content

Commit cef613c

Browse files
filipesilvaBrocco
authored andcommitted
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
1 parent 20fd846 commit cef613c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/@ngtools/webpack/src/plugin.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -334,8 +334,7 @@ export class AotPlugin implements Tapable {
334334
}
335335

336336
this.done.then(() => {
337-
result.resource = this.skipCodeGeneration ? this.basePath : this.genDir;
338-
result.recursive = true;
337+
result.resource = this.genDir;
339338
result.dependencies.forEach((d: any) => d.critical = false);
340339
result.resolveDependencies = (_fs: any, _resource: any, _recursive: any,
341340
_regExp: RegExp, cb: any) => {

0 commit comments

Comments
 (0)