@@ -638,7 +638,12 @@ namespace ts {
638
638
}
639
639
640
640
/*@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 {
642
647
const { buildInfoPath, jsFilePath, sourceMapFilePath, declarationFilePath, declarationMapPath } = getOutputPathsForBundle ( config . options , /*forceDtsPaths*/ false ) ;
643
648
const buildInfoText = host . readFile ( Debug . assertDefined ( buildInfoPath ) ) ;
644
649
if ( ! buildInfoText ) return buildInfoPath ! ;
@@ -723,7 +728,7 @@ namespace ts {
723
728
useCaseSensitiveFileNames : ( ) => host . useCaseSensitiveFileNames ( ) ,
724
729
getProgramBuildInfo : returnUndefined
725
730
} ;
726
- emitFiles ( notImplementedResolver , emitHost , /*targetSourceFile*/ undefined , /*emitOnlyDtsFiles*/ false , getTransformers ( config . options ) ) ;
731
+ emitFiles ( notImplementedResolver , emitHost , /*targetSourceFile*/ undefined , /*emitOnlyDtsFiles*/ false , getTransformers ( config . options , customTransformers ) ) ;
727
732
return outputFiles ;
728
733
}
729
734
0 commit comments