Skip to content

Commit

Permalink
fix(@ngtools/webpack): remove saving Angular compiler in JIT watch mode
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
clydin authored and alan-agius4 committed Mar 12, 2021
1 parent 37b77e8 commit e326679
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions packages/ngtools/webpack/src/ivy/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -569,7 +569,6 @@ export class AngularWebpackPlugin {
rootNames,
compilerOptions,
host,
this.ngtscNextProgram,
);
const angularCompiler = angularProgram.compiler;
const pendingAnalysis = angularCompiler.analyzeAsync().then(() => {
Expand All @@ -586,10 +585,6 @@ export class AngularWebpackPlugin {
return innerFileEmitter(file);
};

if (this.watchMode) {
this.ngtscNextProgram = angularProgram;
}

return {
fileEmitter: analyzingFileEmitter,
builder,
Expand Down

0 comments on commit e326679

Please sign in to comment.