mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-23 07:07:09 -05:00
use existing information about module resolutions
This commit is contained in:
@@ -613,6 +613,8 @@ namespace ts {
|
||||
|
||||
if (existingResolutions && hasProperty(existingResolutions, moduleNameExpr.text)) {
|
||||
let fileName = existingResolutions[moduleNameExpr.text];
|
||||
// use existing resolution
|
||||
setResolvedModuleName(file, moduleNameExpr, fileName);
|
||||
if (fileName) {
|
||||
findModuleSourceFile(fileName, moduleNameExpr);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user