The official migrator covers most renames; we’ll fill gaps with targeted codemods after running it. (polaris-react.shopify.com)
Command
npx @shopify/polaris-migrator <migration> <path> --dry
# then remove --dry and commit by chunk
Detect:
- Presence of Polaris; prompt running v12 migrations (tokens like
-p-font-size-75 → -p-font-size-300, etc.). (polaris-react.shopify.com)
Edge cases:
- Migrator won’t fix bespoke CSS or app-specific abstractions; schedule follow-up sweep issues (below).
References: