mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-17 10:31:20 -06: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:
parent
6ea74ae7f1
commit
67bed265b7
@ -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];
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user