@@ -336,7 +336,7 @@ export class AngularCompilerPlugin {
336336 this . _updateForkedTypeChecker ( this . _rootNames , this . _getChangedCompilationFiles ( ) ) ;
337337 }
338338
339- // Use an identity function as all our paths are absolute already.
339+ // Use an identity function as all our paths are absolute already.
340340 this . _moduleResolutionCache = ts . createModuleResolutionCache ( this . _basePath , x => x ) ;
341341
342342 if ( this . _JitMode ) {
@@ -649,7 +649,7 @@ export class AngularCompilerPlugin {
649649 // when the issuer is a `.ts` or `.ngfactory.js` file.
650650 nmf . hooks . beforeResolve . tapAsync ( 'angular-compiler' , ( request : any , callback : any ) => {
651651 if ( this . done && ( request . request . endsWith ( '.ts' )
652- || ( request . context . issuer && / \. t s | n g f a c t o r y \. j s $ / . test ( request . context . issuer ) ) ) ) {
652+ || ( request . context . issuer && / \. t s | n g f a c t o r y \. j s $ / . test ( request . context . issuer ) ) ) ) {
653653 this . done . then ( ( ) => callback ( null , request ) , ( ) => callback ( null , request ) ) ;
654654 } else {
655655 callback ( null , request ) ;
@@ -920,7 +920,7 @@ export class AngularCompilerPlugin {
920920 . map ( ( resourcePath ) => path . resolve ( path . dirname ( resolvedFileName ) , resourcePath ) ) ;
921921
922922 // These paths are meant to be used by the loader so we must denormalize them.
923- const uniqueDependencies = new Set ( [
923+ const uniqueDependencies = new Set ( [
924924 ...esImports ,
925925 ...resourceImports ,
926926 ...this . getResourceDependencies ( resolvedFileName )
@@ -1069,6 +1069,7 @@ export class AngularCompilerPlugin {
10691069 `please check that "${ locale } " is a valid locale id.
10701070 Proceeding with default locale data registration i.e. 'en'.
10711071 If needed, localeData can be registered against custom locale in application module.` ) ;
1072+ locale = 'en' ;
10721073 }
10731074 }
10741075 }
0 commit comments