Skip to content

Commit

Permalink
get rid of duplicate classes once sorted
Browse files Browse the repository at this point in the history
  • Loading branch information
Trapfether committed Nov 29, 2023
1 parent 8364567 commit 88c70ba
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/sorting.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,9 @@ export function sortClasses(

classes = sortClassList(classes, { env })

// get rid of duplicates
classes = [...new Set(classes)];

for (let i = 0; i < classes.length; i++) {
result += `${classes[i]}${replacement ?? ' '}`
}
Expand Down

0 comments on commit 88c70ba

Please sign in to comment.