mirror of https://github.com/webpack/webpack.git
fix: logic
This commit is contained in:
parent
aa1d44e29e
commit
b475c53b81
|
@ -368,10 +368,12 @@ class CssModulesPlugin {
|
|||
if (module instanceof CssModule && module.hot) {
|
||||
const exports = module.buildInfo.cssData.exports;
|
||||
const stringifiedExports = JSON.stringify(
|
||||
Array.from(exports).reduce((obj, [key, value]) => {
|
||||
obj[key] = value;
|
||||
return obj;
|
||||
}, {})
|
||||
JSON.stringify(
|
||||
Array.from(exports).reduce((obj, [key, value]) => {
|
||||
obj[key] = value;
|
||||
return obj;
|
||||
}, {})
|
||||
)
|
||||
);
|
||||
|
||||
const hmrCode = Template.asString([
|
||||
|
|
Loading…
Reference in New Issue