When a dev server is running, checking out a new branch triggers the HBS rebuild for all templates. While this is relatively fast, it in turn triggers the vite dev server reload multiple times, resulting in very slow checkout times on Windows.
Expected Behaviour
The template generation should check the generation result and not write the file in order to skip a vite refresh.
Bonus: we could implement an internal fine gratular watch instead of using chokidar on the whole folder
Bug Description
When a dev server is running, checking out a new branch triggers the HBS rebuild for all templates. While this is relatively fast, it in turn triggers the vite dev server reload multiple times, resulting in very slow checkout times on Windows.
Expected Behaviour
The template generation should check the generation result and not write the file in order to skip a vite refresh.
Bonus: we could implement an internal fine gratular watch instead of using chokidar on the whole folder