From 03d6a1b0fedd34c8677e48233a566c4d98683e3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torstein=20Bj=C3=B8rnstad?= Date: Tue, 5 Nov 2024 12:07:55 +0100 Subject: [PATCH] Bah, no semicolons.. --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 70dfdb2..0e11d5a 100644 --- a/index.js +++ b/index.js @@ -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]]