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