Don’t double clone nodes

This commit is contained in:
Jordan Pittman 2025-05-06 11:14:07 -04:00
parent 65e2c17627
commit 5e2fd98f60

View file

@ -193,7 +193,7 @@ export function substituteAtApply(ast: AstNode[], designSystem: DesignSystem) {
candidateSrc[1] += 7 + candidateOffset
candidateSrc[2] = candidateSrc[1] + candidate.length
return { node: structuredClone(node), src: candidateSrc }
return { node, src: candidateSrc }
})
for (let { node, src } of details) {