Skip to content

Commit 8ee5610

Browse files
committed
expose transformers option to transpileModule
1 parent 6756e3e commit 8ee5610

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/services/transpile.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ namespace ts {
55
reportDiagnostics?: boolean;
66
moduleName?: string;
77
renamedDependencies?: MapLike<string>;
8+
transformers?: CustomTransformers;
89
}
910

1011
export interface TranspileOutput {
@@ -103,7 +104,7 @@ namespace ts {
103104
addRange(/*to*/ diagnostics, /*from*/ program.getOptionsDiagnostics());
104105
}
105106
// Emit
106-
program.emit();
107+
program.emit(/*targetSourceFile*/ undefined, /*writeFile*/ undefined, /*cancellationToken*/ undefined, /*emitOnlyDtsFiles*/ undefined, transpileOptions.transformers);
107108

108109
Debug.assert(outputText !== undefined, "Output generation failed");
109110

0 commit comments

Comments
 (0)