Report output file not built error for any module resolution that ends up to source file

Fixes #29918
This commit is contained in:
Sheetal Nandi
2019-03-20 17:27:19 -07:00
parent 2932421370
commit 8da384d32a
4 changed files with 29 additions and 20 deletions

View File

@@ -2268,7 +2268,6 @@ namespace ts {
if (refFile) {
const redirect = getProjectReferenceRedirect(fileName);
if (redirect) {
((refFile.redirectedReferences || (refFile.redirectedReferences = [])) as string[]).push(fileName);
fileName = redirect;
// Once we start redirecting to a file, we can potentially come back to it
// via a back-reference from another file in the .d.ts folder. If that happens we'll