In our current project, we are utilizing Angular elements to generate widgets that are then displayed in a separate host web application. This host app dynamically renders the web components from the Angular elements application and showcases them within a layout.
The compiled and minified output of the Angular elements app is stored on a different server compared to the host app, as part of our microservices architecture.
Our main challenge lies in maintaining functional source maps for the compiled Angular elements project so that we can effectively debug with references back to the original TypeScript source files. Currently, we are only able to debug by 'pretty printing' the minified file, which is limiting our debugging capabilities. While we can include the source maps, the issue is that the source tree remains invisible, making it impossible to set breakpoints.
We aim to be able to view the source files tree in the developer tools and establish breakpoints in the TypeScript code for more efficient debugging.
If anyone has any suggestions on how to approach this issue, your input would be highly appreciated.