Skip to content

preprocessCss is no longer run on composed files #115

Open
@willdawsonme

Description

@willdawsonme

Since css-modules-require-hook started using postcss-modules-resolve-imports (v4.2.2), preprocessCss is no longer being called on composed files, which makes using this module with stylus impossible if you use composes.

For example, this:

// src/components/Home/styles.styl
.header
    composes: header from '../styles/page.styl'

should give me:

// src/components/Home/index.js
styles = {
    header: 'styles__header__abcd page__header__abcd',
}

but instead I get:

// src/components/Home/index.js
styles = {
    header: 'styles__header__abcd header',
}

because page.styl isn't being preprocessed before postcss is run.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions