From 67bed265b7f29162aa68a8979efeff6b6f75c633 Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Fri, 30 Oct 2015 11:57:20 -0700 Subject: [PATCH] Since js extensions are not user specified, no need to check if source map file will overwrite input file --- src/compiler/program.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/compiler/program.ts b/src/compiler/program.ts index 0fab35dacb3..2a451b90860 100644 --- a/src/compiler/program.ts +++ b/src/compiler/program.ts @@ -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]; }