Since js extensions are not user specified, no need to check if source map file will overwrite input file

This commit is contained in:
Sheetal Nandi 2015-10-30 11:57:20 -07:00
parent 6ea74ae7f1
commit 67bed265b7

View File

@ -1267,14 +1267,11 @@ namespace ts {
// Build map of files seen
for (let file of files) {
let { jsFilePath, sourceMapFilePath, declarationFilePath } = getEmitFileNames(file, emitHost);
let { jsFilePath, declarationFilePath } = getEmitFileNames(file, emitHost);
if (jsFilePath) {
let filesEmittingJsFilePath = lookUp(emitFilesSeen, jsFilePath);
if (!filesEmittingJsFilePath) {
emitFilesSeen[jsFilePath] = [file];
if (sourceMapFilePath) {
emitFilesSeen[sourceMapFilePath] = [file];
}
if (declarationFilePath) {
emitFilesSeen[declarationFilePath] = [file];
}