JoostK
a64eded521
fix(ivy): capture template source mapping details during preanalysis (#32544)
Prior to this change, the template source mapping details were always built during the analysis phase, under the assumption that pre-analysed templates would always correspond with external templates. This has turned out to be a false assumption, as inline templates are also pre-analyzed to be able to preload any stylesheets included in the template. This commit fixes the bug by capturing the template source mapping details at the moment the template is parsed, which is either during the preanalysis phase when preloading is available, or during the analysis phase when preloading is not supported. Tests have been added to exercise the template error mapping in asynchronous compilations where preloading is enabled, similar to how the CLI performs compilations. Fixes #32538 PR Close #32544
Angular
Angular is a development platform for building mobile and desktop web applications using TypeScript/JavaScript and other languages.
Quickstart
Changelog
Learn about the latest improvements.
Want to help?
Want to file a bug, contribute some code, or improve documentation? Excellent! Read up on our guidelines for contributing and then check out one of our issues in the hotlist: community-help.
Description
Languages
TypeScript
68.6%
HTML
12.8%
JavaScript
8.4%
Pug
7%
Starlark
1.4%
Other
1.7%