angular-cn/packages/compiler-cli/ngcc/test/host
Pete Bacon Darwin f4fee86f77 fix(ngcc): support inline export declarations in UMD files (#38959)
Previously, any declarations that were defined "inline" were not
recognised by the `UmdReflectionHost`.

For example, the following syntax was completely unrecognized:

```ts
var Foo_1;
exports.Foo = Foo_1 = (function() {
  function Foo() {}
  return Foo;
})();
exports.Foo = Foo_1 = __decorate(SomeDecorator, Foo);
```

Such inline classes were ignored and not processed by ngcc.

This lack of processing led to failures in Ivy applications that relied
on UMD formats of libraries such as `syncfusion/ej2-angular-ui-components`.

Now all known inline UMD exports are recognized and processed accordingly.

Fixes #38947

PR Close #38959
2020-10-12 08:32:46 -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 refactor(compiler-cli): implement `DeclarationNode` node type (#38959) 2020-10-12 08:32:46 -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): support inline export declarations in UMD files (#38959) 2020-10-12 08:32:46 -07:00
util.ts fix(ngcc): use aliased exported types correctly (#38666) 2020-09-08 11:41:21 -07:00