denoland / deno

A modern runtime for JavaScript and TypeScript.
https://deno.com
MIT License
94.04k stars 5.23k forks source link

compilerOptions.jsx options doesn't align with tsconfig. "preserve" not allowed #25767

Open birkskyum opened 3 hours ago

birkskyum commented 3 hours ago

Version: deno 2.0.0-rc.4+a92ebd9

repro:

The error is: error: Unsupported 'jsx' compiler option value 'preserve'. Supported: 'react-jsx', 'react-jsxdev', 'react', 'precompile'

I assume it's because these are the allowed values: https://github.com/denoland/deno/blob/471a15ecfffff009d24a684dda47a42aa71001d7/cli/args/mod.rs#L170-L175

Where in the tsconfig docs, these are the allowed options: https://www.typescriptlang.org/tsconfig/#jsx

preserve
react
react-native
react-jsx
react-jsxdev
marvinhagemeister commented 2 hours ago

Related https://github.com/denoland/deno/issues/25677