angular/packages/compiler-cli/test/compliance/test_cases
Paul Gschwendtner ab257b3701 fix(compiler): non-literal inline templates incorrectly processed in partial compilation (#41583)
Currently if a component defines a template inline, but not through a
string literal, the partial compilation references the template expression
as is. This is problematic because the component declaration can no longer
be processed by the linker later as there is no static interpretation. e.g.

```js
const myTemplate = `...`;

TestCmp.ɵcmp = i0.ɵɵngDeclareComponent({
  version: "0.0.0-PLACEHOLDER",
  type: TestCmp,
  selector: "test-cmp",
  ngImport: i0,
  template: myTemplate,
  isInline: true
});
```

To fix this, we use the the resolved template in such cases so that
the linker can process the template/component declaration as expected.

PR Close #41583
2021-04-16 09:33:05 -07:00
..
r3_compiler_compliance fix(compiler): non-literal inline templates incorrectly processed in partial compilation (#41583) 2021-04-16 09:33:05 -07:00
r3_view_compiler perf(compiler): reduce amount of generated code for safe accesses and nullish coalescing (#41563) 2021-04-14 15:48:22 -07:00
r3_view_compiler_bindings perf(compiler): reduce amount of generated code for safe accesses and nullish coalescing (#41563) 2021-04-14 15:48:22 -07:00
r3_view_compiler_di/di refactor(compiler-cli): change how partial-linkers are matched to declaration versions (#41578) 2021-04-14 11:00:40 -07:00
r3_view_compiler_directives/matching refactor(compiler-cli): change how partial-linkers are matched to declaration versions (#41578) 2021-04-14 11:00:40 -07:00
r3_view_compiler_i18n perf(compiler): reduce amount of generated code for safe accesses and nullish coalescing (#41563) 2021-04-14 15:48:22 -07:00
r3_view_compiler_input_outputs refactor(compiler-cli): change how partial-linkers are matched to declaration versions (#41578) 2021-04-14 11:00:40 -07:00
r3_view_compiler_listener refactor(compiler-cli): change how partial-linkers are matched to declaration versions (#41578) 2021-04-14 11:00:40 -07:00
r3_view_compiler_providers refactor(compiler-cli): change how partial-linkers are matched to declaration versions (#41578) 2021-04-14 11:00:40 -07:00
r3_view_compiler_styling refactor(compiler-cli): change how partial-linkers are matched to declaration versions (#41578) 2021-04-14 11:00:40 -07:00
r3_view_compiler_template refactor(compiler-cli): change how partial-linkers are matched to declaration versions (#41578) 2021-04-14 11:00:40 -07:00
source_mapping refactor(compiler-cli): change how partial-linkers are matched to declaration versions (#41578) 2021-04-14 11:00:40 -07:00
BUILD.bazel test(compiler-cli): generate golden files for partial compilation (#39617) 2020-11-13 11:25:56 -08:00
list_golden_update_rules.ts refactor(compiler-cli): use semver range checking for partial versions (#39847) 2020-12-04 10:26:17 -08:00
test_case_schema.json test(compiler-cli): improve compliance test compile mode filtering (#39939) 2020-12-07 16:21:04 -08:00