fix(compiler-cli): fix and re-enble expression lowering (#18570)

Fixes issue uncovered by #18388 and re-enables expression
lowering disabled by #18513.
This commit is contained in:
Chuck Jazdzewski
2017-08-08 12:40:08 -07:00
committed by Victor Berchet
parent f0a55016af
commit 6f2038cc85
4 changed files with 80 additions and 15 deletions

View File

@ -187,8 +187,7 @@ class AngularCompilerProgram implements Program {
const before: ts.TransformerFactory<ts.SourceFile>[] = [];
const after: ts.TransformerFactory<ts.SourceFile>[] = [];
if (!this.options.disableExpressionLowering) {
// TODO(chuckj): fix and re-enable + tests - see https://github.com/angular/angular/pull/18388
// before.push(getExpressionLoweringTransformFactory(this.metadataCache));
before.push(getExpressionLoweringTransformFactory(this.metadataCache));
}
if (!this.options.skipTemplateCodegen) {
after.push(getAngularEmitterTransformFactory(this.generatedFiles));