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.
Since css-modules-require-hook started using postcss-modules-resolve-imports (v4.2.2),
preprocessCssis no longer being called on composed files, which makes using this module with stylus impossible if you usecomposes.For example, this:
should give me:
but instead I get:
because page.styl isn't being preprocessed before postcss is run.