fix(ivy): recompile on template change in ngc watch mode on Windows (#34015)

In #33551, a bug in `ngc --watch` mode was fixed so that a component is
recompiled when its template file is changed. Due to insufficient
normalization of files paths, this fix did not have the desired effect
on Windows.

Fixes #32869

PR Close #34015
This commit is contained in:
JoostK
2019-11-23 21:06:37 +01:00
committed by Miško Hevery
parent f7d4cc9cab
commit 5cada5cce1
7 changed files with 26 additions and 19 deletions

View File

@ -7,6 +7,7 @@
*/
import * as ts from 'typescript';
import {AbsoluteFsPath} from '../file_system';
/**
* Interface of the incremental build engine.
@ -33,7 +34,7 @@ export interface DependencyTracker<T extends{fileName: string} = ts.SourceFile>
/**
* Record that the file `from` depends on the resource file `on`.
*/
addResourceDependency(from: T, on: string): void;
addResourceDependency(from: T, on: AbsoluteFsPath): void;
/**
* Record that the file `from` depends on the file `on` as well as `on`'s direct dependencies.