angular/packages/compiler-cli/ngcc/test/host
Pete Bacon Darwin 822b838fbc fix(ngcc): ensure that "inline exports" can be interpreted correctly (#39267)
Previously, inline exports of the form `exports.foo = <implementation>;` were
being interpreted (by the ngtsc `PartialInterpeter`) as `Reference` objects.
This is not what is desired since it prevents the value of the export
from being unpacked, such as when analyzing `NgModule` declarations:

```
exports.directives = [Directive1, Directive2];

@NgImport({declarations: [exports.directives]})
class AppModule {}
```

In this example the interpreter would think that `exports.directives`
was a reference rather than an array that needs to be unpacked.

This bug was picked up by the ngcc-validation repository. See
https://github.com/angular/ngcc-validation/pull/1990 and
https://circleci.com/gh/angular/ngcc-validation/17130

PR Close #39267
2020-10-14 14:11:45 -07:00
..
commonjs_host_import_helper_spec.ts refactor(ngcc): move logging code into ngtsc (#37114) 2020-06-22 13:38:47 -07:00
commonjs_host_spec.ts fix(ngcc): ensure that "inline exports" can be interpreted correctly (#39267) 2020-10-14 14:11:45 -07:00
esm5_host_import_helper_spec.ts fix(compiler-cli): avoid creating value expressions for symbols from type-only imports (#37912) 2020-08-11 09:53:25 -07:00
esm5_host_spec.ts refactor(compiler-cli): implement DeclarationNode node type (#38959) 2020-10-12 08:32:46 -07:00
esm2015_host_import_helper_spec.ts fix(compiler-cli): avoid creating value expressions for symbols from type-only imports (#37912) 2020-08-11 09:53:25 -07:00
esm2015_host_spec.ts refactor(compiler-cli): implement DeclarationNode node type (#38959) 2020-10-12 08:32:46 -07:00
umd_host_import_helper_spec.ts refactor(ngcc): move logging code into ngtsc (#37114) 2020-06-22 13:38:47 -07:00
umd_host_spec.ts fix(ngcc): ensure that "inline exports" can be interpreted correctly (#39267) 2020-10-14 14:11:45 -07:00
util.ts fix(ngcc): use aliased exported types correctly (#38666) 2020-09-08 11:41:21 -07:00