You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.
The preserve mode will keep the JSX as part of the output to be further consumed by another transform step (e.g. Babel)
If I understand correctly the JSX transformation is not performed by @babel/preset-typescript but by @babel/preset-react, so what is the point to declare a JSX transformation in the tsconfig? Setting preserve can also be useful for supporting the new JSX transform: in the tsconfig we can specify always preserve and let babel decide how to transform the JSX code
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
In the "Using JSX" section there is this instruction:
I think that the right value should be "preserve", since the TypeScript documentation says that
If I understand correctly the JSX transformation is not performed by
@babel/preset-typescript
but by@babel/preset-react
, so what is the point to declare a JSX transformation in the tsconfig? Settingpreserve
can also be useful for supporting the new JSX transform: in the tsconfig we can specify alwayspreserve
and let babel decide how to transform the JSX codeThe text was updated successfully, but these errors were encountered: