Skip to content

Commit 8c489bf

Browse files
committed
UpdateBundleProject<T> to contain emit method
1 parent f0b7e08 commit 8c489bf

File tree

2 files changed

+203
-184
lines changed

2 files changed

+203
-184
lines changed

src/compiler/emitter.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)