Don't return when updating declaration important

This commit is contained in:
Adam Wathan 2020-08-28 08:49:16 -04:00
parent 5974f24eda
commit 44dbde8ea6

View File

@ -250,7 +250,9 @@ function processApplyAtRules(css, lookupTree, config) {
]
const { nodes } = _.tap(postcss.root({ nodes: rulesToInsert }), root =>
root.walkDecls(d => (d.important = important))
root.walkDecls(d => {
d.important = important
})
)
const mergedRules = mergeAdjacentRules(rule, nodes)