The JSX preserve transform discards leading whitespace within a JSXElement and prior to a child JSXElement, and discards trailing whitespace after a child JSXElement . See this example here where the output JSX for Foo
should contain more whitespace at the start and end of the component.