You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(material/schematics): avoid re-entrant processing in MDC style migration
We're mutating the AST in a PostCSS processor during the MDC migration when fixing user's code. The problem is that when PostCSS detects that the AST was changed, it will re-run the processors until there are no more changes left to make. This is problematic for migrations like typography hierarchy, because some legacy classes are swapped with non-legacy ones which causes PostCSS to re-run and apply a new incorrect migration.
These changes aim to avoid the issue preventing such re-entrant style migrations.
(cherry picked from commit e80929d)
Copy file name to clipboardExpand all lines: src/material/schematics/ng-generate/mdc-migration/rules/components/typography-hierarchy/typography-hierarchy-styles.ts
+9-1Lines changed: 9 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -25,7 +25,15 @@ export class TypographyHierarchyStylesMigrator extends StyleMigrator {
0 commit comments