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 110289276c
commit a5c9cd7e52
7 changed files with 26 additions and 19 deletions

View File

@ -64,7 +64,7 @@ describe('perform watch', () => {
const watchResult = performWatchCompilation(host);
expectNoDiagnostics(config.options, watchResult.firstCompileResult);
const htmlPath = path.posix.join(testSupport.basePath, 'src', 'main.html');
const htmlPath = path.join(testSupport.basePath, 'src', 'main.html');
const genPath = ivyEnabled ? path.posix.join(outDir, 'src', 'main.js') :
path.posix.join(outDir, 'src', 'main.ngfactory.js');