Skip to content

Polaris v12: run @shopify/polaris-migrator (automated tokens/props), then manual fixes per v12 guide #19

@mohab-sameh

Description

@mohab-sameh

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:

Metadata

Metadata

Assignees

No one assigned

    Labels

    polaris-reactPolaris React transformations

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions