drop comments

This commit is contained in:
Robin Malfait 2021-06-30 18:48:21 +02:00
parent 2d327c1acc
commit 1473ec2749
No known key found for this signature in database
GPG key ID: 92F53D68B9041AFE

View file

@ -23,15 +23,6 @@ function extractElementSelector(selector) {
export default function collapseAdjacentRules() {
return (root) => {
// Walk all custom properties
// Collect into a map, where key is the custom property name
// Value is list of nodes
// Walk '*::tailwind' rules
// Get list of selectors per custom property
// Compute element selector (remove pseudo-classes, leading selectors, etc.)
// Collect selectors into Set
// Replace '*::tailwind' with selectors from Set
let variableNodeMap = new Map()
let universals = new Set()