Skip to content

Conversation

YanZiSen
Copy link

add compatible for css-loader>4.x and css-modules;

this situation css-loader transformed module will export.default;

this solution add a option getCss to get the transformed module;

useage:

{
  loader: "isomorphic-style-loader",
  options: {
    getCss: (css) => {
      return css.default;
    },
  },
},

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant