@@ -604,7 +604,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
604604 write ( `//# sourceMappingURL=${ sourceMappingURL } ` ) ;
605605 }
606606
607- writeEmittedFiles ( writer . getText ( ) , jsFilePath , sourceMapFilePath , /*writeByteOrderMark*/ compilerOptions . emitBOM ) ;
607+ writeEmittedFiles ( writer . getText ( ) , jsFilePath , sourceMapFilePath , /*writeByteOrderMark*/ compilerOptions . emitBOM , sourceFiles ) ;
608608
609609 // reset the state
610610 sourceMap . reset ( ) ;
@@ -748,16 +748,16 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
748748 }
749749
750750 /** Write emitted output to disk */
751- function writeEmittedFiles ( emitOutput : string , jsFilePath : string , sourceMapFilePath : string , writeByteOrderMark : boolean ) {
751+ function writeEmittedFiles ( emitOutput : string , jsFilePath : string , sourceMapFilePath : string , writeByteOrderMark : boolean , sourceFiles : SourceFile [ ] ) {
752752 if ( compilerOptions . sourceMap && ! compilerOptions . inlineSourceMap ) {
753- writeFile ( host , emitterDiagnostics , sourceMapFilePath , sourceMap . getText ( ) , /*writeByteOrderMark*/ false ) ;
753+ writeFile ( host , emitterDiagnostics , sourceMapFilePath , sourceMap . getText ( ) , /*writeByteOrderMark*/ false , sourceFiles ) ;
754754 }
755755
756756 if ( sourceMapDataList ) {
757757 sourceMapDataList . push ( sourceMap . getSourceMapData ( ) ) ;
758758 }
759759
760- writeFile ( host , emitterDiagnostics , jsFilePath , emitOutput , writeByteOrderMark ) ;
760+ writeFile ( host , emitterDiagnostics , jsFilePath , emitOutput , writeByteOrderMark , sourceFiles ) ;
761761 }
762762
763763 // Create a temporary variable with a unique unused name.
0 commit comments