Skip to content

Commit b6dfa39

Browse files
authored
Merge pull request #14252 from Microsoft/master-fix12297
[Master] Fix 12297 undefined exception in writeReferencePath
2 parents 363c514 + 84b9ebd commit b6dfa39

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compiler/utilities.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2675,7 +2675,7 @@ namespace ts {
26752675
if (sourceFiles.length) {
26762676
const jsFilePath = options.outFile || options.out;
26772677
const sourceMapFilePath = getSourceMapFilePath(jsFilePath, options);
2678-
const declarationFilePath = options.declaration ? removeFileExtension(jsFilePath) + ".d.ts" : undefined;
2678+
const declarationFilePath = options.declaration ? removeFileExtension(jsFilePath) + ".d.ts" : "";
26792679
action({ jsFilePath, sourceMapFilePath, declarationFilePath }, createBundle(sourceFiles), emitOnlyDtsFiles);
26802680
}
26812681
}

0 commit comments

Comments
 (0)