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)); } }