isomorphic-style-loader icon indicating copy to clipboard operation
isomorphic-style-loader copied to clipboard

fix:css-module-compatible

Open YanZiSen opened this issue 1 year ago • 0 comments

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;
    },
  },
},

YanZiSen avatar May 10 '23 08:05 YanZiSen