@@ -12,7 +12,7 @@ namespace ts {
1212 }
1313
1414 export function getExternalModuleNameFromDeclaration ( host : EmitHost , resolver : EmitResolver , declaration : ImportEqualsDeclaration | ImportDeclaration | ExportDeclaration ) : string {
15- let file = resolver . getExternalModuleFileFromDeclaration ( declaration ) ;
15+ const file = resolver . getExternalModuleFileFromDeclaration ( declaration ) ;
1616 if ( ! file || isDeclarationFile ( file ) ) {
1717 return undefined ;
1818 }
@@ -355,7 +355,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, Promi
355355 else {
356356 forEach ( host . getSourceFiles ( ) , sourceFile => {
357357 if ( shouldEmitToOwnFile ( sourceFile , compilerOptions ) ) {
358- let jsFilePath = getOwnEmitOutputFilePath ( sourceFile , host , shouldEmitJsx ( sourceFile ) ? ".jsx" : ".js" ) ;
358+ const jsFilePath = getOwnEmitOutputFilePath ( sourceFile , host , shouldEmitJsx ( sourceFile ) ? ".jsx" : ".js" ) ;
359359 emitFile ( jsFilePath , sourceFile ) ;
360360 }
361361 } ) ;
@@ -616,7 +616,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, Promi
616616 if ( compilerOptions . sourceMap || compilerOptions . inlineSourceMap ) {
617617 initializeEmitterWithSourceMaps ( jsFilePath , root ) ;
618618 }
619-
619+
620620 if ( root ) {
621621 // Do not call emit directly. It does not set the currentSourceFile.
622622 emitSourceFile ( root ) ;
@@ -7372,7 +7372,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, Promi
73727372 }
73737373
73747374 if ( emitRelativePathAsModuleName ) {
7375- let name = getExternalModuleNameFromDeclaration ( host , resolver , externalImports [ i ] ) ;
7375+ const name = getExternalModuleNameFromDeclaration ( host , resolver , externalImports [ i ] ) ;
73767376 if ( name ) {
73777377 text = `"${ name } "` ;
73787378 }
@@ -7422,7 +7422,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, Promi
74227422 let externalModuleName = getExternalModuleNameText ( importNode ) ;
74237423
74247424 if ( emitRelativePathAsModuleName ) {
7425- let name = getExternalModuleNameFromDeclaration ( host , resolver , importNode ) ;
7425+ const name = getExternalModuleNameFromDeclaration ( host , resolver , importNode ) ;
74267426 if ( name ) {
74277427 externalModuleName = `"${ name } "` ;
74287428 }
0 commit comments