Skip to content
This repository was archived by the owner on Apr 6, 2021. It is now read-only.

Commit f0af0c9

Browse files
committed
make the code a bit shorter
1 parent efe0b11 commit f0af0c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/expandApplyAtRules.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ function expandApplyAtRules(context) {
8181
}
8282

8383
// Inject the rules, sorted, correctly
84-
for (let [, sibling] of siblings.sort(([{ sort: a }], [{ sort: z }]) => bigSign(z - a))) {
84+
for (let [, sibling] of siblings.sort(([a], [z]) => bigSign(z.sort - a.sort))) {
8585
// `apply.parent` is referring to the node at `.abc` in: .abc { @apply mt-2 }
8686
apply.parent.after(sibling)
8787
}

0 commit comments

Comments
 (0)