angular-cn/packages/compiler-cli/ngcc/test/host
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
..
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): report the correct viaModule when reflecting over commonjs (#33192) 2019-10-17 19:43:39 -04: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): avoid warning when reflecting on index signature member (#33198) 2019-10-17 16:05:48 -04: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