Track utilities generated by @apply

This commit is contained in:
Jordan Pittman 2025-04-16 18:04:03 -04:00
parent 6febfd966a
commit 6b9ace2679

View file

@ -167,8 +167,13 @@ export function substituteAtApply(ast: AstNode[], designSystem: DesignSystem) {
},
})
let src = node.src
let candidateAst = compiled.astNodes
walk(candidateAst, (node) => {
node.src = src
})
// Collect the nodes to insert in place of the `@apply` rule. When a rule
// was used, we want to insert its children instead of the rule because we
// don't want the wrapping selector.