SAP / ui5-webcomponents

UI5 Web Components - the enterprise-flavored sugar on top of native APIs! Build SAP Fiori user interfaces with the technology of your choice.
https://sap.github.io/ui5-webcomponents/
Apache License 2.0
1.51k stars 263 forks source link

[build]: improve HBS watch #9276

Closed pskelin closed 3 months ago

pskelin commented 3 months ago

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