-
Notifications
You must be signed in to change notification settings - Fork 713
Open
Labels
Domain: EmitRelated to emit, AST printing, Program emit funcsRelated to emit, AST printing, Program emit funcs
Description
Steps to reproduce
import * as React from 'react'
declare function Child(props: { children?: React.ReactNode }): React.ReactNode;
function Test() {
return <Child>
<Child>
<Child></Child>
</Child>
</Child>
}
Behavior with [email protected]
The output preserves the newlines and indentation of the tags:
function Test() {
return React.createElement(Child, null,
React.createElement(Child, null,
React.createElement(Child, null)));
}
Behavior with tsgo
The output collapses everything on a single line:
function Test() {
return React.createElement(Child, null, React.createElement(Child, null, React.createElement(Child, null)));
}
Copilot
Metadata
Metadata
Assignees
Labels
Domain: EmitRelated to emit, AST printing, Program emit funcsRelated to emit, AST printing, Program emit funcs