Skip to content

Commit

Permalink
Bah, no semicolons..
Browse files Browse the repository at this point in the history
  • Loading branch information
ToshB committed Nov 5, 2024
1 parent 35e10b2 commit 03d6a1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ function nestRules ({ rules, target, nested = [], mediaQuery = false, mixinsOnly
if (target === 'scss') {
// https://sass-lang.com/documentation/breaking-changes/mixed-decls/
// If appending plain rule following any nested rules, it must be wrapped in a & {} block
const parentRuleset = parent?.[1];
const parentRuleset = parent?.[1]
const hasNestedSelector = Array.isArray(parentRuleset) && parentRuleset.some(([selector]) => selector.startsWith('&'))
if (hasNestedSelector) {
ruleset = [['&', rule]]
Expand Down

0 comments on commit 03d6a1b

Please sign in to comment.