refactor: remove exact same-file css duplicates
This commit is contained in:
@@ -1834,7 +1834,7 @@ test("stylesheet layers do not repeat identical rules in the same cascade contex
|
||||
visitRules(sheet.cssRules, href);
|
||||
}
|
||||
return Array.from(occurrences.entries())
|
||||
.filter(([, paths]) => new Set(paths).size > 1)
|
||||
.filter(([, paths]) => paths.length > 1)
|
||||
.map(([rule, paths]) => ({ rule, paths }));
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user