From 5094aef8fd4aa3a84c3e40505174d3738a8e0301 Mon Sep 17 00:00:00 2001 From: Chuck Jazdzewski Date: Fri, 24 Feb 2017 11:52:18 -0800 Subject: [PATCH] fix(compiler-cli): fix flat module import on Windows (#14712) --- modules/@angular/compiler-cli/src/compiler_host.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/@angular/compiler-cli/src/compiler_host.ts b/modules/@angular/compiler-cli/src/compiler_host.ts index 392a827f3d..7a4e6a3919 100644 --- a/modules/@angular/compiler-cli/src/compiler_host.ts +++ b/modules/@angular/compiler-cli/src/compiler_host.ts @@ -271,7 +271,8 @@ export class CompilerHost implements AotCompilerHost { if (DTS.test(filePath)) { // Check for a bundle index. if (this.hasBundleIndex(filePath)) { - return this.bundleIndexNames.has(filePath); + const normalFilePath = path.normalize(filePath); + return this.bundleIndexNames.has(normalFilePath); } } return true;