@@ -638,7 +638,12 @@ namespace ts {
638638 }
639639
640640 /*@internal */
641- export function emitUsingBuildInfo ( config : ParsedCommandLine , host : EmitUsingBuildInfoHost , getCommandLine : ( ref : ProjectReference ) => ParsedCommandLine | undefined ) : EmitUsingBuildInfoResult {
641+ export function emitUsingBuildInfo (
642+ config : ParsedCommandLine ,
643+ host : EmitUsingBuildInfoHost ,
644+ getCommandLine : ( ref : ProjectReference ) => ParsedCommandLine | undefined ,
645+ customTransformers ?: CustomTransformers
646+ ) : EmitUsingBuildInfoResult {
642647 const { buildInfoPath, jsFilePath, sourceMapFilePath, declarationFilePath, declarationMapPath } = getOutputPathsForBundle ( config . options , /*forceDtsPaths*/ false ) ;
643648 const buildInfoText = host . readFile ( Debug . assertDefined ( buildInfoPath ) ) ;
644649 if ( ! buildInfoText ) return buildInfoPath ! ;
@@ -723,7 +728,7 @@ namespace ts {
723728 useCaseSensitiveFileNames : ( ) => host . useCaseSensitiveFileNames ( ) ,
724729 getProgramBuildInfo : returnUndefined
725730 } ;
726- emitFiles ( notImplementedResolver , emitHost , /*targetSourceFile*/ undefined , /*emitOnlyDtsFiles*/ false , getTransformers ( config . options ) ) ;
731+ emitFiles ( notImplementedResolver , emitHost , /*targetSourceFile*/ undefined , /*emitOnlyDtsFiles*/ false , getTransformers ( config . options , customTransformers ) ) ;
727732 return outputFiles ;
728733 }
729734
0 commit comments