angular-cn/packages/core/schematics/migrations/static-queries
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
..
angular refactor(core): add static-query template strategy (#29815) 2019-04-15 10:53:54 -07:00
google3 refactor(core): add static-query template strategy (#29815) 2019-04-15 10:53:54 -07:00
strategies refactor(core): static-query template strategy should not parse stylesheets (#29876) 2019-04-18 18:22:09 -07:00
BUILD.bazel refactor(core): allow developers to select static-query migration strategy (#29876) 2019-04-18 18:22:09 -07:00
index.ts refactor(core): allow developers to select static-query migration strategy (#29876) 2019-04-18 18:22:09 -07:00
transform.ts refactor(core): add static-query template strategy (#29815) 2019-04-15 10:53:54 -07:00