Skip to content

Ordering of selectors when there are nested composes is inconsistant #38

@madpilot

Description

@madpilot

Example case: https://github.com/madpilot/css-modules-bug-158

There seems to be a problem with selector ordering when there is multiple levels of composition.

If you look at output.css you can see the .include-2__header___2LJaB is after .include-1__header___H-qGE

It should be the other way around.

to duplicate:

Clone that repo
npm install
npm run build
Look at output.css

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions