fix(compiler-cli): disable buggy expression lowering (#18513)
This commit is contained in:
parent
9b015a95eb
commit
ca695e0632
|
@ -187,7 +187,8 @@ class AngularCompilerProgram implements Program {
|
||||||
const before: ts.TransformerFactory<ts.SourceFile>[] = [];
|
const before: ts.TransformerFactory<ts.SourceFile>[] = [];
|
||||||
const after: ts.TransformerFactory<ts.SourceFile>[] = [];
|
const after: ts.TransformerFactory<ts.SourceFile>[] = [];
|
||||||
if (!this.options.disableExpressionLowering) {
|
if (!this.options.disableExpressionLowering) {
|
||||||
before.push(getExpressionLoweringTransformFactory(this.metadataCache));
|
// TODO(chuckj): fix and re-enable + tests - see https://github.com/angular/angular/pull/18388
|
||||||
|
// before.push(getExpressionLoweringTransformFactory(this.metadataCache));
|
||||||
}
|
}
|
||||||
if (!this.options.skipTemplateCodegen) {
|
if (!this.options.skipTemplateCodegen) {
|
||||||
after.push(getAngularEmitterTransformFactory(this.generatedFiles));
|
after.push(getAngularEmitterTransformFactory(this.generatedFiles));
|
||||||
|
|
|
@ -315,7 +315,7 @@ describe('ngc command-line', () => {
|
||||||
.toBe(true);
|
.toBe(true);
|
||||||
});
|
});
|
||||||
|
|
||||||
describe('expression lowering', () => {
|
xdescribe('expression lowering', () => {
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
writeConfig(`{
|
writeConfig(`{
|
||||||
"extends": "./tsconfig-base.json",
|
"extends": "./tsconfig-base.json",
|
||||||
|
|
Loading…
Reference in New Issue