From 43429ea04d546df542d9c2159d7c5ad6309ebea8 Mon Sep 17 00:00:00 2001 From: Andreyan Andreev Date: Mon, 24 Apr 2017 17:34:40 +0300 Subject: [PATCH] fix(@ngtools/webpack): resolve path windows --- packages/@ngtools/webpack/src/compiler_host.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/@ngtools/webpack/src/compiler_host.ts b/packages/@ngtools/webpack/src/compiler_host.ts index 876744b8070e..7c56c50fcfe4 100644 --- a/packages/@ngtools/webpack/src/compiler_host.ts +++ b/packages/@ngtools/webpack/src/compiler_host.ts @@ -117,11 +117,11 @@ export class WebpackCompilerHost implements ts.CompilerHost { private _resolve(path: string) { path = this._normalizePath(path); if (path[0] == '.') { - return join(this.getCurrentDirectory(), path); + return this._normalizePath(join(this.getCurrentDirectory(), path)); } else if (path[0] == '/' || path.match(/^\w:\//)) { return path; } else { - return join(this._basePath, path); + return this._normalizePath(join(this._basePath, path)); } }