angular-cn/packages/compiler-cli/ngcc/test
JoostK 747f0cff9e fix(ngcc): handle presence of both `ctorParameters` and `__decorate` (#32901)
Recently ng-packagr was updated to include a transform that used to be
done in tsickle (https://github.com/ng-packagr/ng-packagr/pull/1401),
where only constructor parameter decorators are emitted in tsickle's
format, not any of the other decorators.

ngcc used to extract decorators from only a single format, so once it
saw the `ctorParameters` static property it assumed the library is using
the tsickle format. Therefore, none of the `__decorate` calls were
considered. This resulted in missing decorator information, preventing
proper processing of a package.

This commit changes how decorators are extracted by always looking at
both the static properties and the `__decorate` calls, merging these
sources appropriately.

Resolves FW-1573

PR Close #32901
2019-09-30 14:11:45 -07:00
..
analysis fix(ngcc): ensure private exports are added for `ModuleWithProviders` (#32902) 2019-09-30 14:11:16 -07:00
dependencies perf(ngcc): process tasks in parallel in async mode (#32427) 2019-09-09 15:55:13 -04:00
entry_point_finder fix(ngcc): do not analyze dependencies for non Angular entry-points (#32303) 2019-08-26 10:08:44 -07:00
execution perf(ngcc): process tasks in parallel in async mode (#32427) 2019-09-09 15:55:13 -04:00
helpers perf(ngcc): process tasks in parallel in async mode (#32427) 2019-09-09 15:55:13 -04:00
host fix(ngcc): handle presence of both `ctorParameters` and `__decorate` (#32901) 2019-09-30 14:11:45 -07:00
integration perf(ngcc): process tasks in parallel in async mode (#32427) 2019-09-09 15:55:13 -04:00
logging feat(compiler-cli): ngcc - make logging more configurable (#29591) 2019-04-01 11:53:28 -07:00
migrations refactor(ivy): ngcc - remove `formatProperty` from `EntryPointBundle` (#32052) 2019-08-08 11:14:38 -07:00
packages fix(ngcc): make the build-marker error more clear (#32712) 2019-09-25 11:29:45 -07:00
rendering fix(ngcc): support UMD global factory in comma lists (#32709) 2019-09-17 09:16:08 -07:00
writing refactor(ngcc): abstract updating `package.json` files behind an interface (#32427) 2019-09-09 15:55:13 -04:00
BUILD.bazel refactor(ngcc): implement task selection for parallel task execution (#32427) 2019-09-09 15:55:13 -04:00
utils_spec.ts refactor(ivy): ngcc - implement new module resolver (#29643) 2019-04-29 12:37:21 -07:00