angular-cn/packages/compiler-cli/test/ngtsc
Alex Rickabaugh 31022cbecf feat(ivy): generate .ngsummary.js shims (#26495)
This commit adds generation of .ngsummary.js shims alongside .ngfactory.js
shims when generated files are enabled.

Generated .ngsummary shims contain a single, null export for every exported
class with decorators that exists in the original source files. Ivy code
does not depend on summaries, so these exist only as a placeholder to allow
them to be imported and their values passed to old APIs. This preserves
backwards compatibility.

Testing strategy: this commit adds a compiler test to verify the correct
shape and contents of the generated .ngsummary.js files.

PR Close #26495
2018-10-19 13:30:02 -07:00
..
fake_core test(ivy): implement tests for template type-checking (#26203) 2018-10-04 10:11:17 -07:00
BUILD.bazel test(ivy): refactor ngtsc tests to use an NgtscTestEnvironment helper (#26203) 2018-10-04 10:11:17 -07:00
env.ts test(ivy): refactor ngtsc tests to use an NgtscTestEnvironment helper (#26203) 2018-10-04 10:11:17 -07:00
ngtsc_spec.ts feat(ivy): generate .ngsummary.js shims (#26495) 2018-10-19 13:30:02 -07:00
template_typecheck_spec.ts test(ivy): implement tests for template type-checking (#26203) 2018-10-04 10:11:17 -07:00