fix(compiler-cli): fix flat module import on Windows (#14712)

This commit is contained in:
Chuck Jazdzewski 2017-02-24 11:52:18 -08:00 committed by Igor Minar
parent 93ddd38107
commit 5094aef8fd
1 changed files with 2 additions and 1 deletions

View File

@ -271,7 +271,8 @@ export class CompilerHost implements AotCompilerHost {
if (DTS.test(filePath)) { if (DTS.test(filePath)) {
// Check for a bundle index. // Check for a bundle index.
if (this.hasBundleIndex(filePath)) { if (this.hasBundleIndex(filePath)) {
return this.bundleIndexNames.has(filePath); const normalFilePath = path.normalize(filePath);
return this.bundleIndexNames.has(normalFilePath);
} }
} }
return true; return true;