This PR adds some logic to the new JSX transforms that allows it to merge serializable JSX children together. A node is deemed serializable when it is text, or is a serializable HTML node. This addresses the following scenarios where we'd generate more templates than necessary:
This PR adds some logic to the new JSX transforms that allows it to merge serializable JSX children together. A node is deemed serializable when it is text, or is a serializable HTML node. This addresses the following scenarios where we'd generate more templates than necessary:
This scenario happens often enough in our code bases that this optimization should be worth it.