angular-cn/packages/core
Alex Rickabaugh 73da2792c9 fix(ivy): properly compile NgModules with forward referenced types (#29198)
Previously, ngtsc would resolve forward references while evaluating the
bootstrap, declaration, imports, and exports fields of NgModule types.
However, when generating the resulting ngModuleDef, the forward nature of
these references was not taken into consideration, and so the generated JS
code would incorrectly reference types not yet declared.

This commit fixes this issue by introducing function closures in the
NgModuleDef type, similarly to how NgComponentDef uses them for forward
declarations of its directives and pipes arrays. ngtsc will then generate
closures when required, and the runtime will unwrap them if present.

PR Close #29198
2019-03-12 18:26:42 -07:00
..
schematics refactor(core): static-query schematic should not run multiple times (#29133) 2019-03-12 12:28:14 -07:00
src fix(ivy): properly compile NgModules with forward referenced types (#29198) 2019-03-12 18:26:42 -07:00
test fix(ivy): properly compile NgModules with forward referenced types (#29198) 2019-03-12 18:26:42 -07:00
testing fix(ivy): properly compile NgModules with forward referenced types (#29198) 2019-03-12 18:26:42 -07:00
BUILD.bazel build: enable bundle_dts for core package (#28884) 2019-03-08 12:36:55 -08:00
PACKAGE.md docs: add package doc files (#26047) 2018-10-05 15:42:14 -07:00
index.ts refactor: move angular source to /packages rather than modules/@angular 2017-03-08 16:29:27 -08:00
package.json feat(core): update schematic to migrate to explicit query timing (#28983) 2019-03-05 14:21:40 -08:00
public_api.ts build: publish tree of files rather than FESMs (#18541) 2017-08-31 15:34:50 -07:00
tsconfig-build.json feat(ivy): implement TestBed (#25369) 2018-08-14 11:58:47 -07:00