Skip to content

Commit 43429ea

Browse files
andreyan-andreevhansl
authored andcommitted
fix(@ngtools/webpack): resolve path windows
1 parent 4aa17b2 commit 43429ea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/@ngtools/webpack/src/compiler_host.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -117,11 +117,11 @@ export class WebpackCompilerHost implements ts.CompilerHost {
117117
private _resolve(path: string) {
118118
path = this._normalizePath(path);
119119
if (path[0] == '.') {
120-
return join(this.getCurrentDirectory(), path);
120+
return this._normalizePath(join(this.getCurrentDirectory(), path));
121121
} else if (path[0] == '/' || path.match(/^\w:\//)) {
122122
return path;
123123
} else {
124-
return join(this._basePath, path);
124+
return this._normalizePath(join(this._basePath, path));
125125
}
126126
}
127127

0 commit comments

Comments
 (0)