Skip to content

v4 breaks css-module-loader  #1134

Closed
@jquense

Description

@jquense

Hey @evilebottnawi the change that only adds the ICSS plugins breaks the strategy used by https://github.com/jquense/css-module-loader to convert modules into :import and :export rules which depended on the (admittedly weird) behavior of css-loader always including the icss plugin.

It's not enough to turn on modules tho b/c css-loader will then rehash everything. For this sort of thing to work we need an api to handle downstream import/exports without css-loader trying to process css-modules. This is also true for the new auto default. it's not safe to assume any .module.css file should be processed by css-loader when there are loaders ahead of it.

Would love if we could come up with a first class API for this!

Metadata

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