Regenerate sourcemaps when modifying code at buildtime
Description
When embeding the HTML and CSS templates in the component.ts files at build time, the sourcemaps were desynchronized, and debugging in VSCode was impossible. This Merge-Request solves the problem.
Job done
The corresponding sourcemap is now returned by the vite plugin.
Definition of Done
For the Developer:
-
Code compiles and conforms to defined coding standards (eslint, tsc, prettier). -
If necessary (at the developer's discretion), unit tests have been added for critical parts. -
All unittests run without error. -
Sonar-Scan returns no new issues or security hotspots. -
Documentation has been updated where necessary (see documentation repository). -
Merge-Request contains a few explanations of what was done. -
A Reviewer has been assigned to the Merge-Request.
For the Reviewer:
-
New code was reviewed. -
If comments could be added on unclear code, the developer has been informed. -
If unitests could be added in certain places, the developer has been informed. -
Merge-Request was merged on main branch. -
All pipelines work. -
The bugfix was tested on demo environment. -
Application performance has not been degraded by the modifications.
Edited by Guillaume Remy