refactor(core): undecorated-classes-with-di migration should never use ngtsc (#32318)
ec4381dd40
enabled Ivy by default. This is
problematic as migrations like `undecorated-classes-with-di` depend on the
`AngularCompilerProgram` (NGC) in order to perform the migration from
version 8 to version 9. In order to ensure that the migration always runs
with NGC (and doesn't get the `NgtscProgram`), we need to explicitly disable
ivy when creating the `@angular/compiler-cli` program for the migration.
PR Close #32318
This commit is contained in:

committed by
Miško Hevery

parent
b094936d72
commit
e5636a322c
@ -32,7 +32,6 @@ describe('Undecorated classes with DI migration', () => {
|
||||
compilerOptions: {
|
||||
lib: ['es2015'],
|
||||
},
|
||||
angularCompilerOptions: {enableIvy: false}
|
||||
}));
|
||||
writeFile('/angular.json', JSON.stringify({
|
||||
projects: {t: {architect: {build: {options: {tsConfig: './tsconfig.json'}}}}}
|
||||
|
Reference in New Issue
Block a user