angular-cn/packages/compiler-cli/ngcc/test
JoostK 6fbfb5a159 feat(ivy): ngcc - recognize static properties on the outer symbol in ES5 (#30795)
Packages that have been compiled using an older version of TypeScript
can have their decorators at the top-level of the ES5 bundles, instead
of inside the IIFE that is emitted for the class. Before this change,
ngcc only took static property assignments inside the IIFE into account,
therefore missing the decorators that were assigned at the top-level.

This commit extends the ES5 host to look for static properties in two
places. Testcases for all bundle formats that contain ES5 have been added
to ensure that this works in the various flavours.

A patch is included to support UMD bundles. The UMD factory affects how
TypeScripts binds the static properties to symbols, see the docblock of
the patch function for more details.

PR Close #30795
2019-06-14 13:09:56 -07:00
..
analysis fix(ivy): ngcc should process undecorated base classes (#30821) 2019-06-11 00:19:34 +00:00
dependencies feat(ivy): ngcc - turn on CommonJS support (#30200) 2019-05-22 16:24:15 -07:00
helpers feat(ivy): ngcc - recognize static properties on the outer symbol in ES5 (#30795) 2019-06-14 13:09:56 -07:00
host feat(ivy): ngcc - recognize static properties on the outer symbol in ES5 (#30795) 2019-06-14 13:09:56 -07:00
integration fix(ivy): ngcc - prevent crash for packages without "main" property (#30950) 2019-06-11 00:12:03 +00:00
logging feat(compiler-cli): ngcc - make logging more configurable (#29591) 2019-04-01 11:53:28 -07:00
packages fix(ivy): ngcc - capture entry-points in top-level path-mapped folders (#31027) 2019-06-14 10:43:59 -07:00
rendering fix(ivy): ngcc should process undecorated base classes (#30821) 2019-06-11 00:19:34 +00:00
writing test: fix ngcc unit tests in windows (#30297) 2019-05-13 11:26:56 -07:00
BUILD.bazel refactor(ivy): use a named type for ImportManager import structures (#25445) 2019-05-16 12:11:03 -07:00
utils_spec.ts refactor(ivy): ngcc - implement new module resolver (#29643) 2019-04-29 12:37:21 -07:00