File tree 1 file changed +8
-2
lines changed
packages/ngtools/webpack/src
1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -174,6 +174,12 @@ export class AngularCompilerPlugin {
174
174
return { path, className } ;
175
175
}
176
176
177
+ get typeChecker ( ) : ts . TypeChecker | null {
178
+ const tsProgram = this . _getTsProgram ( ) ;
179
+
180
+ return tsProgram ? tsProgram . getTypeChecker ( ) : null ;
181
+ }
182
+
177
183
static isSupported ( ) {
178
184
return VERSION && parseInt ( VERSION . major ) >= 5 ;
179
185
}
@@ -351,7 +357,7 @@ export class AngularCompilerPlugin {
351
357
this . _updateForkedTypeChecker ( this . _rootNames , this . _getChangedCompilationFiles ( ) ) ;
352
358
}
353
359
354
- // Use an identity function as all our paths are absolute already.
360
+ // Use an identity function as all our paths are absolute already.
355
361
this . _moduleResolutionCache = ts . createModuleResolutionCache ( this . _basePath , x => x ) ;
356
362
357
363
if ( this . _JitMode ) {
@@ -1020,7 +1026,7 @@ export class AngularCompilerPlugin {
1020
1026
. map ( ( resourcePath ) => resolve ( dirname ( resolvedFileName ) , normalize ( resourcePath ) ) ) ;
1021
1027
1022
1028
// These paths are meant to be used by the loader so we must denormalize them.
1023
- const uniqueDependencies = new Set ( [
1029
+ const uniqueDependencies = new Set ( [
1024
1030
...esImports ,
1025
1031
...resourceImports ,
1026
1032
...this . getResourceDependencies ( this . _compilerHost . denormalizePath ( resolvedFileName ) ) ,
You can’t perform that action at this time.
0 commit comments