Log packageId in --traceResolution (#21233)

This commit is contained in:
Andy
2018-01-17 11:41:23 -08:00
committed by GitHub
parent c549bb5737
commit b363f4f9cd
8 changed files with 28 additions and 14 deletions

View File

@@ -1817,7 +1817,7 @@ namespace ts {
}, shouldCreateNewSourceFile);
if (packageId) {
const packageIdKey = `${packageId.name}/${packageId.subModuleName}@${packageId.version}`;
const packageIdKey = packageIdToString(packageId);
const fileFromPackageId = packageIdToSourceFile.get(packageIdKey);
if (fileFromPackageId) {
// Some other SourceFile already exists with this package name and version.