Merge pull request #8481 from Microsoft/Fix8470-2

Fix #8470: use ts.normalizePath before checking filename idenity
This commit is contained in:
Mohamed Hegazy
2016-05-06 16:55:47 -07:00
2 changed files with 7 additions and 2 deletions

View File

@@ -1921,7 +1921,7 @@ namespace ts {
// Create a compilerHost object to allow the compiler to read and write files
const compilerHost: CompilerHost = {
getSourceFile: (fileName, target) => fileName === normalizeSlashes(inputFileName) ? sourceFile : undefined,
getSourceFile: (fileName, target) => fileName === normalizePath(inputFileName) ? sourceFile : undefined,
writeFile: (name, text, writeByteOrderMark) => {
if (fileExtensionIs(name, ".map")) {
Debug.assert(sourceMapText === undefined, `Unexpected multiple source map outputs for the file '${name}'`);