angular-cn/packages/compiler-cli/test/ngtsc
JoostK 45c6360e5a feat(ivy): emit module scope metadata using pure function call (#29598)
Prior to this change, all module metadata would be included in the
`defineNgModule` call that is set as the `ngModuleDef` field of module
types. Part of the metadata is scope information like declarations,
imports and exports that is used for computing the transitive module
scope in JIT environments, preventing those references from being
tree-shaken for production builds.

This change moves the metadata for scope computations to a pure function
call that patches the scope references onto the module type. Because the
function is marked pure, it may be tree-shaken out during production builds
such that references to declarations and exports are dropped, which in turn
allows for tree-shaken any declaration that is not otherwise referenced.

Fixes #28077, FW-1035

PR Close #29598
2019-04-02 16:03:54 -07:00
..
fake_core style: enforce buildifier lint on CI (#28186) 2019-02-26 16:57:41 -08:00
BUILD.bazel build(bazel): back out of @bazel/jasmine 0.27.7 with shard count (#29444) 2019-03-21 09:59:13 -07:00
env.ts test(ivy): support multiple compilations in the ngtsc test env (#29380) 2019-04-01 15:13:56 -07:00
incremental_spec.ts perf(ivy): basic incremental compilation for ngtsc (#29380) 2019-04-01 15:13:56 -07:00
ngtsc_spec.ts feat(ivy): emit module scope metadata using pure function call (#29598) 2019-04-02 16:03:54 -07:00
scope_spec.ts feat(ivy): emit module scope metadata using pure function call (#29598) 2019-04-02 16:03:54 -07:00
sourcemap_utils.ts feat(ivy): add source mappings to compiled Angular templates (#28055) 2019-02-12 20:58:28 -08:00
template_mapping_spec.ts test(ivy): add template source mapping tests (#28055) 2019-02-12 20:58:28 -08:00
template_typecheck_spec.ts build: remove unused "test.sh" leftover code in compiler-cli (#28352) 2019-02-05 14:31:10 -05:00