angular-cn/packages/compiler-cli/ngcc/test
Alex Rickabaugh afcff73be3 fix(ngcc): report the correct viaModule when reflecting over commonjs (#33192)
In the ReflectionHost API, a 'viaModule' indicates that a particular value
originated in another absolute module. It should always be 'null' for values
originating in relatively-imported modules.

This commit fixes a bug in the CommonJsReflectionHost where viaModule would
be reported even for relatively-imported values, which causes invalid import
statements to be generated during compilation.

A test is added to verify the correct behavior.

FW-1628 #resolve

PR Close #33192
2019-10-17 19:43:39 -04: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): report the correct viaModule when reflecting over commonjs (#33192) 2019-10-17 19:43:39 -04: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 feat(ngcc): support version ranges in project/default configurations (#33008) 2019-10-10 13:59:57 -07:00
rendering refactor(core): rename ngInjectorDef to ɵinj (#33151) 2019-10-16 16:36:19 -04: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