Skip to content
Prev Previous commit
Next Next commit
drop comments
  • Loading branch information
RobinMalfait committed Jun 30, 2021
commit 1473ec2749ef12b836bc54dfee0cd33711832098
9 changes: 0 additions & 9 deletions src/jit/lib/optimizeUniversalRules.js
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down