Skip to content

Commit e326679

Browse files
clydinalan-agius4
authored andcommitted
fix(@ngtools/webpack): remove saving Angular compiler in JIT watch mode
The Angular compiler is now only used on the first JIT build to analyze the deprecated string form lazy routes. As a result, there is no need to save the previous compiler instance.
1 parent 37b77e8 commit e326679

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -569,7 +569,6 @@ export class AngularWebpackPlugin {
569569
rootNames,
570570
compilerOptions,
571571
host,
572-
this.ngtscNextProgram,
573572
);
574573
const angularCompiler = angularProgram.compiler;
575574
const pendingAnalysis = angularCompiler.analyzeAsync().then(() => {
@@ -586,10 +585,6 @@ export class AngularWebpackPlugin {
586585
return innerFileEmitter(file);
587586
};
588587

589-
if (this.watchMode) {
590-
this.ngtscNextProgram = angularProgram;
591-
}
592-
593588
return {
594589
fileEmitter: analyzingFileEmitter,
595590
builder,

0 commit comments

Comments
 (0)