mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-16 15:45:27 -05:00
Since js extensions are not user specified, no need to check if source map file will overwrite input file
This commit is contained in:
@@ -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];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user