Skip to content

Allow replaceWith to be called with input that includes itself.#1368

Merged
ai merged 3 commits intopostcss:osefrom
josephkaptur:ose
Jun 17, 2020
Merged

Allow replaceWith to be called with input that includes itself.#1368
ai merged 3 commits intopostcss:osefrom
josephkaptur:ose

Conversation

@josephkaptur
Copy link
Copy Markdown
Contributor

Consider an AST where a node root has child nodes [a, b, c] and there are other nodes d and e. a.replaceWith(a, d, e) now results in root having the children [a, d, e, b, c].

@ai ai merged commit 59ae992 into postcss:ose Jun 17, 2020
@ai
Copy link
Copy Markdown
Member

ai commented Jun 17, 2020

Thanks

ai pushed a commit that referenced this pull request Jun 21, 2020
* Allow replaceWith to be called with a list of nodes that includes the node itself.

* Fix semicolons

* Fix semicolons
@ai ai added this to the 8.0 milestone Sep 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants