Closed wswmsword closed 1 year ago
That is expected, we don't reexport nested @import
, sorry it is by CSS modules design, because you can have the common
class inside a.module.css
and common.module.css
files and so they can overlap and it will be a problem (but yes, you have specific options and it won't happen to you), anyway we can't change logic because we align to CSS modules logic https://github.com/css-modules/icss, and I don't think we can change it here (and look like docs was not updated for a long time)
Anyway feel free to feedback
Bug report
Actual Behavior
a.module.css:
common.module.css:
webpack.config.js:
index.js:
Expected Behavior
index.js:
How Do We Reproduce?
Here's an example repository.
Please paste the results of
npx webpack-cli info
here, and mention other relevant information