We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0321474 commit a781916Copy full SHA for a781916
src/compiler/program.ts
@@ -248,7 +248,10 @@ module ts {
248
return undefined;
249
}
250
function getNameIfExists(fileName: string): string {
251
- if (sys.fileExists(fileName)) {
+ // To detect if file exists.
252
+ // Using this is to demonstrate that sys.fileExists is what is causing module resolution to fail in test driver
253
+ // This is just for code review
254
+ if (host.getSourceFile(fileName, ScriptTarget.Latest)) {
255
return fileName;
256
257
0 commit comments