fix: logic

This commit is contained in:
alexander.akait 2024-11-29 13:57:25 +03:00
parent aa1d44e29e
commit b475c53b81
1 changed files with 6 additions and 4 deletions

View File

@ -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([