Sun, 18 Dec 2022 14:52:03 +0000

Earlier today I helped debug a JSX transformation issue when using Vite with a non-React JSX runtime, and noticed that esbuild has *much better* option names than TypeScript.
The TSConfig options are not only too React-centric, but also misleading.

In this case, he needs to set it to `react` (which means React-style) in TSConfig because the pragma works like `React.createElement`, but he mistakenly set it to `preserve` because he thought that’s the option for non-React frameworks.
Meanwhile in esbuild, the correct option is just `transform`.