Skip to content

Commit 0ac9926

Browse files
committed
Fixed selectors getting overwritten
1 parent 12807a5 commit 0ac9926

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/loader.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ const extractThemeRulesPlugin = postCssPlugins.extractThemeRulesPlugin;
1010
const removeCssModuleExports = postCssPlugins.removeCssModuleExports;
1111

1212
const stringifyRuleMap = (ruleMap) => {
13-
return Object.keys(ruleMap).reduce((acc, selector) => {
13+
return Object.keys(ruleMap).map(selector => {
1414
const declsMap = ruleMap[selector];
1515
const decls = Object.keys(declsMap).map(prop => `${prop}: ${declsMap[prop]};`);
1616

1717
return `${selector} {\n\t${decls.join('\n\t')}\n}`;
18-
}, '');
18+
}).join('\n');
1919
};
2020

2121
// copied from css-loader/lib/getLocalIdent.js

0 commit comments

Comments
 (0)