Skip to content

Run plugins in a predefined order #2085

Open
@noahbald

Description

Is your feature request related to a problem? Please describe.
Certain plugins perform better based on a prior plugin. Consider the following
convertPathData, then convertShapeToPath

<!-- before -->
    <rect id="useless" width="0" height="0" fill="#ff0000"/>
<!-- `convertPathData`, then `convertShapeToPath` -->
    <path id="useless" fill="#ff0000" d="M0 0H0V0H0z"/>
<!-- `convertShapeToPath`, then `convertPathData` -->
    <path id="useless" fill="#ff0000" d="M0 0"/>

Describe the solution you'd like
Right now the order plugins are run in is in the order provided in the config, however this can be suboptimal.
For example, it makes sense to run convertShapeToPath before convertPathData.

Describe alternatives you've considered
N/A

Additional context
N/A

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions