angular-cn/packages/core/schematics/migrations/static-queries/strategies
Paul Gschwendtner 7503e3540d refactor(core): static-queries migration should never use ngtsc (#32954)
ec4381d enabled Ivy by default. This is problematic as migrations
like `static-queries` depend on the `AngularCompilerProgram` (NGC)
in order to perform the migration from version 7 to version 8.

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.

This code is still relevant even though the update from version 7
to version 8 landed. Developers can run `ng update` from version 7
and immediately get to version 9 where Ivy is enabled by default (and in
that case we need to ensure that ngtsc is not accidentally used).

Similar to
e5636a322c.

PR Close #32954
2019-10-02 14:53:41 -07:00
..
template_strategy refactor(core): static-queries migration should never use ngtsc (#32954) 2019-10-02 14:53:41 -07:00
test_strategy fix(core): static-query migration should gracefully exit if AOT compiler throws (#30269) 2019-05-08 11:54:33 -07:00
usage_strategy build: ensure schematics are built with typescript strict flag (#31967) 2019-08-13 11:39:00 -07:00
timing-strategy.ts fix(core): static-query migration should gracefully exit if AOT compiler throws (#30269) 2019-05-08 11:54:33 -07:00