angular-cn/packages/core/schematics/migrations/static-queries/strategies
Paul Gschwendtner c1d5fbd0ad refactor(core): static-query template strategy should not parse stylesheets (#29876)
Currently the `template-strategy` for the static query migration uses the
Angular compiler in order to determine the query timing. This is problematic
as the AngularCompilerProgram also collects metadata for referenced
component stylesheets which aren't necessarily present. e.g. in a CLI
project the component can reference a Sass file. It's not guaranteed
that the standalone Angular compiler plugin supports Sass without
custom logic that is brought in by the Angular CLI webpack plugin.

In order to avoid any failures for invalid stylesheets, we just disable
normalizing of all referenced stylesheets.

PR Close #29876
2019-04-18 18:22:09 -07:00
..
template_strategy refactor(core): static-query template strategy should not parse stylesheets (#29876) 2019-04-18 18:22:09 -07:00
usage_strategy refactor(core): add static-query template strategy (#29815) 2019-04-15 10:53:54 -07:00
timing-strategy.ts refactor(core): add static-query template strategy (#29815) 2019-04-15 10:53:54 -07:00