Skip to content

Commit a8ef77c

Browse files
authored
Merge pull request microsoft#12445 from tlancina/master
Re-add sourceFiles to program emit callback
2 parents 75a9435 + 61204cc commit a8ef77c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/compiler/emitter.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ namespace ts {
143143

144144
// Write the source map
145145
if (compilerOptions.sourceMap && !compilerOptions.inlineSourceMap) {
146-
writeFile(host, emitterDiagnostics, sourceMapFilePath, sourceMap.getText(), /*writeByteOrderMark*/ false);
146+
writeFile(host, emitterDiagnostics, sourceMapFilePath, sourceMap.getText(), /*writeByteOrderMark*/ false, sourceFiles);
147147
}
148148

149149
// Record source map data for the test harness.
@@ -152,7 +152,7 @@ namespace ts {
152152
}
153153

154154
// Write the output file
155-
writeFile(host, emitterDiagnostics, jsFilePath, writer.getText(), compilerOptions.emitBOM);
155+
writeFile(host, emitterDiagnostics, jsFilePath, writer.getText(), compilerOptions.emitBOM, sourceFiles);
156156

157157
// Reset state
158158
sourceMap.reset();

0 commit comments

Comments
 (0)