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:
@ -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');
|
||||
|
||||
|
Reference in New Issue
Block a user