Don't debug assert on broken link in moduleNameResolver (#55649)

This commit is contained in:
Jake Bailey 2023-09-06 12:00:18 -07:00 committed by GitHub
parent 4b177a186a
commit 41a914f00d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1896,7 +1896,6 @@ function realPath(path: string, host: ModuleResolutionHost, traceEnabled: boolea
if (traceEnabled) {
trace(host, Diagnostics.Resolving_real_path_for_0_result_1, path, real);
}
Debug.assert(host.fileExists(real), `${path} linked to nonexistent file ${real}`);
return real;
}