Skip to content

Commit f858fa4

Browse files
committed
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. Setting a resource doesn't actually seem to be necessary, I did a few local tests and lazy routes still seem to be added and updated correctly. @Brocco this should also fix your local failing poll test. Fix #6238 Close #6959
1 parent cb0cc08 commit f858fa4

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

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

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

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

0 commit comments

Comments
 (0)