Skip to content

Commit

Permalink
fix(@ngtools/webpack): resolve path windows
Browse files Browse the repository at this point in the history
  • Loading branch information
andreyan-andreev authored and hansl committed Apr 25, 2017
1 parent 4aa17b2 commit 43429ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/@ngtools/webpack/src/compiler_host.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
}

Expand Down

0 comments on commit 43429ea

Please sign in to comment.