Indirect templates are templates produced by a non-literal expression value of the `template` field in `@Component`. The compiler can statically determine the template string, but there is not guaranteed to be a physical file which contains the bytes of the template string. For example, the template string may be computed by a concatenation expression: 'a' + 'b'. Previously, the compiler would use the TS file path as the source map path for indirect templates. This is incorrect, however, and breaks source mapping for such templates, since the offsets within the template string do not correspond to bytes of the TS file. This commit returns the compiler to its old behavior for indirect templates, which is to use `''` as the source map URL for such templates. Fixes #40854 PR Close #41973
Angular
The sources for this package are in the main Angular repo. Please file issues and pull requests against that repo.
Usage information and reference details can be found in Angular documentation.
License: MIT