mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
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 |
||
|---|---|---|
| .. | ||
| integrationtest | ||
| linker | ||
| ngcc | ||
| src | ||
| test | ||
| BUILD.bazel | ||
| index.ts | ||
| package.json | ||
| tsconfig-build.json | ||
| tsconfig.json | ||