Skip to content

Commit 9fcf10a

Browse files
msmorganhansl
authored andcommitted
fix(@ngtools/webpack): resolve file name before invalidating cached files (#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 #4422 Fixes #4345 Fixes #4338
1 parent 375130f commit 9fcf10a

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)