Skip to content

Commit

Permalink
fix(@ngtools/webpack): resolve file name before invalidating cached f…
Browse files Browse the repository at this point in the history
…iles (#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
  • Loading branch information
msmorgan authored and hansl committed Feb 3, 2017
1 parent 375130f commit 9fcf10a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/@ngtools/webpack/src/compiler_host.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ export class WebpackCompilerHost implements ts.CompilerHost {
}

invalidate(fileName: string): void {
fileName = this._resolve(fileName);
if (fileName in this._files) {
this._files[fileName] = null;
this._changedFiles[fileName] = true;
Expand Down

0 comments on commit 9fcf10a

Please sign in to comment.