Skip to content

Commit b4fdfc8

Browse files
msmorganZhicheng Wang
authored and
Zhicheng Wang
committed
fix(@ngtools/webpack): resolve file name before invalidating cached files (angular#4384)
Fix WebpackCompilerHost's cache invalidation behavior on Windows systems. Previously, no call to _resolve was made, causing paths with backslashes not to match the file cache. Fixes angular#4422 Fixes angular#4345 Fixes angular#4338
1 parent 6275f78 commit b4fdfc8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

+1
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,7 @@ export class WebpackCompilerHost implements ts.CompilerHost {
187187
}
188188

189189
invalidate(fileName: string): void {
190+
fileName = this._resolve(fileName);
190191
if (fileName in this._files) {
191192
this._files[fileName] = null;
192193
this._changedFiles[fileName] = true;

0 commit comments

Comments
 (0)