Fix sources array case sensitivity

This commit is contained in:
Ron Buckton
2018-06-14 23:27:04 -07:00
parent e62a5edc94
commit 575ab61c6b
3 changed files with 5 additions and 5 deletions

View File

@@ -403,7 +403,7 @@ namespace ts {
host.getCanonicalFileName,
/*isAbsolutePathAnUrl*/ true
);
const absolutePath = toPath(resolvedPath, sourcesDirectoryPath, host.getCanonicalFileName);
const absolutePath = getNormalizedAbsolutePath(resolvedPath, sourcesDirectoryPath);
// tslint:disable-next-line:no-null-keyword
setupSourceEntry(absolutePath, originalMap.sourcesContent ? originalMap.sourcesContent[raw.sourceIndex] : null); // TODO: Lookup content for inlining?
const newIndex = sourceMapData.sourceMapSources.indexOf(resolvedPath);