roothas child nodes
[a, b, c], and you have other nodes
e, then calling
a.replaceWith(a, d, e)results in
roothaving the children
[d, e, b, c], not
[a, d, e, b, c], as I would expect
I'm kind of stuck there too. Actually I haven't worked for a long time with CSS so it's hard for me to justify contribution as relevant in some way to what I'm doing. Furthermore it means I can't review code that is going in because I'm not working day-to-day on CSS, so I have no idea about edge cases.
I also worry about PostCSS 8 migration. It will be very painful (and necessary) to do refactoring work around this. I am afraid I don't have any good answers on how we manage that. All I can say is I'm sincerely grateful to those who have contributed to the project.
@extendsplugins out there.