Skip to content

Commit 9d0a8fe

Browse files
fix(css): read the at-keyword through the shared node path helper
#22569 replaced path.atKeyword() with _atKeywordOf() at every call site, and #22513 landed one more call to the removed method, so minifying CSS threw "path.atKeyword is not a function".
1 parent 8953192 commit 9d0a8fe

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎lib/css/syntax-parser.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17598,7 +17598,7 @@ const _composeBlockBody = (
1759817598
items.length > 1 &&
1759917599
owner !== null &&
1760017600
(path.type(owner) === T_QUALIFIED_RULE ||
17601-
_NESTED_GROUP_AT_RULES.has(path.atKeyword(owner))) &&
17601+
_NESTED_GROUP_AT_RULES.has(_atKeywordOf(owner))) &&
1760217602
_writesOnlyDeclarations(path, items, texts)
1760317603
? []
1760417604
: null;

0 commit comments

Comments
 (0)