angular-cn/packages/compiler-cli/test
Alex Rickabaugh 6e00410e1c fix(compiler-cli): annotate Ivy fields as @nocollapse in closure mode (#22691)
Closure has a transformation which turns:

Service.ngInjectableDef = ...;

into:

Service$ngInjectableDef = ...;

This transformation obviously breaks Ivy in a major way. The solution is
to annotate the fields as @nocollapse. However, Typescript appears to ignore
synthetic comments added to a node during a transformation, so the "right"
way to add these comments doesn't work.

As an interim measure, a post-processing step just before the compiled JS is
written to disk appends the correct comments with a regular expression.

PR Close #22691
2018-03-12 14:34:22 -07:00
..
diagnostics build: upgrade to TypeScript 2.7 (#22669) 2018-03-12 09:27:23 -07:00
metadata build: upgrade to TypeScript 2.7 (#22669) 2018-03-12 09:27:23 -07:00
transformers build: upgrade to TypeScript 2.7 (#22669) 2018-03-12 09:27:23 -07:00
extract_i18n_spec.ts refactor(compiler): remove all source-level traces to tsc-wrapped (#18966) 2017-09-13 20:47:37 -04:00
mocks.ts feat(compiler): implement "enableIvy" compiler option (#21427) 2018-01-18 18:22:44 -06:00
ngc_spec.ts fix(compiler-cli): annotate Ivy fields as @nocollapse in closure mode (#22691) 2018-03-12 14:34:22 -07:00
ngtools_api_spec.ts refactor(compiler): remove old ngtools api and add listLazyRoutes to new api (#19836) 2017-10-23 18:46:04 -04:00
perform_watch_spec.ts build: upgrade to TypeScript 2.6 (#21144) 2017-12-22 20:15:47 -08:00
test_support.ts build: upgrade to TypeScript 2.7 (#22669) 2018-03-12 09:27:23 -07:00