Merge pull request #12445 from tlancina/master

Re-add sourceFiles to program emit callback
This commit is contained in:
Mohamed Hegazy 2016-11-22 12:41:39 -08:00 committed by GitHub
commit a8ef77c33c

View file

@ -143,7 +143,7 @@ namespace ts {
// Write the source map // Write the source map
if (compilerOptions.sourceMap && !compilerOptions.inlineSourceMap) { if (compilerOptions.sourceMap && !compilerOptions.inlineSourceMap) {
writeFile(host, emitterDiagnostics, sourceMapFilePath, sourceMap.getText(), /*writeByteOrderMark*/ false); writeFile(host, emitterDiagnostics, sourceMapFilePath, sourceMap.getText(), /*writeByteOrderMark*/ false, sourceFiles);
} }
// Record source map data for the test harness. // Record source map data for the test harness.
@ -152,7 +152,7 @@ namespace ts {
} }
// Write the output file // Write the output file
writeFile(host, emitterDiagnostics, jsFilePath, writer.getText(), compilerOptions.emitBOM); writeFile(host, emitterDiagnostics, jsFilePath, writer.getText(), compilerOptions.emitBOM, sourceFiles);
// Reset state // Reset state
sourceMap.reset(); sourceMap.reset();