angular-cn/packages/compiler-cli/ngcc/test/host
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
..
commonjs_host_import_helper_spec.ts fix(ivy): ngcc - render decorators in UMD and CommonJS bundles correctly (#31614) 2019-07-29 16:10:58 -07:00
commonjs_host_spec.ts fix(ngcc): resolve imports in `.d.ts` files for UMD/CommonJS bundles (#32619) 2019-09-12 13:18:20 -07:00
esm5_host_import_helper_spec.ts fix(ngcc): handle presence of both `ctorParameters` and `__decorate` (#32901) 2019-09-30 14:11:45 -07:00
esm5_host_spec.ts fix(ngcc): consistently use outer declaration for classes (#32539) 2019-09-12 11:12:10 -07:00
esm2015_host_import_helper_spec.ts fix(ngcc): handle presence of both `ctorParameters` and `__decorate` (#32901) 2019-09-30 14:11:45 -07:00
esm2015_host_spec.ts fix(ngcc): correctly read static properties for aliased classes (#32619) 2019-09-12 13:18:20 -07:00
umd_host_import_helper_spec.ts fix(ivy): ngcc - render decorators in UMD and CommonJS bundles correctly (#31614) 2019-07-29 16:10:58 -07:00
umd_host_spec.ts fix(ngcc): resolve imports in `.d.ts` files for UMD/CommonJS bundles (#32619) 2019-09-12 13:18:20 -07:00
util.ts refactor(ivy): implement a virtual file-system layer in ngtsc + ngcc (#30921) 2019-06-25 16:25:24 -07:00