File tree Expand file tree Collapse file tree 2 files changed +4
-7
lines changed
packages/ngtools/webpack/src
tests/angular_devkit/build_webpack/angular-app Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -91,7 +91,7 @@ export class AngularCompilerPlugin {
91
91
// TS compilation.
92
92
private _compilerOptions : CompilerOptions ;
93
93
private _rootNames : string [ ] ;
94
- private _program : ( ts . Program | Program ) | null ;
94
+ private _program : ( ts . Program | Program ) | undefined ;
95
95
private _compilerHost : WebpackCompilerHost & CompilerHost ;
96
96
private _moduleResolutionCache : ts . ModuleResolutionCache ;
97
97
private _resourceLoader ?: WebpackResourceLoader ;
@@ -673,7 +673,7 @@ export class AngularCompilerPlugin {
673
673
// only present for webpack 4.23.0+, assume true otherwise
674
674
const watchMode = rootCompiler . watchMode === undefined ? true : rootCompiler . watchMode ;
675
675
if ( ! watchMode ) {
676
- this . _program = null ;
676
+ this . _program = undefined ;
677
677
this . _transformers = [ ] ;
678
678
this . _resourceLoader = undefined ;
679
679
this . _compilerHost . reset ( ) ;
@@ -1385,7 +1385,7 @@ export class AngularCompilerPlugin {
1385
1385
} else {
1386
1386
errMsg = e . stack ;
1387
1387
// It is not a syntax error we might have a program with unknown state, discard it.
1388
- this . _program = null ;
1388
+ this . _program = undefined ;
1389
1389
code = UNKNOWN_ERROR_CODE ;
1390
1390
}
1391
1391
allDiagnostics . push (
Original file line number Diff line number Diff line change 18
18
]
19
19
},
20
20
"angularCompilerOptions" : {
21
- // TODO: debug this problem.
22
- // This should really be true but was getting the error below on every second build.
23
- // `ERROR in Cannot read property 'incrementalState' of null`
24
- "enableIvy" : false ,
21
+ "enableIvy" : true ,
25
22
"disableTypeScriptVersionCheck" : true
26
23
}
27
24
}
You can’t perform that action at this time.
0 commit comments