fix: selector generation when using important

This commit is contained in:
Mark Lawlor
2022-04-28 18:04:25 +10:00
parent e73cbce387
commit b39125d9a8

View File

@@ -82,7 +82,7 @@ export const plugin: PluginCreator<PostcssPluginOptions> = ({
} else {
// The parent is the root, so we are not in a media query
for (const s of node.selectors) {
const selector = normaliseSelector(s);
const selector = normaliseSelector(s, { important });
styles[selector] = { ...styles[selector], ...declarations };
}
}