Deemphasize old JSX transform (#61586)

This commit is contained in:
Sebastian "Sebbie" Silbermann
2025-04-17 20:02:55 +02:00
committed by GitHub
parent 6afd0fb73f
commit 0a1aa6d6eb
4 changed files with 4 additions and 4 deletions

View File

@@ -133,9 +133,9 @@ const compileOnSaveCommandLineOption: CommandLineOption = {
const jsxOptionMap = new Map(Object.entries({
"preserve": JsxEmit.Preserve,
"react-native": JsxEmit.ReactNative,
"react": JsxEmit.React,
"react-jsx": JsxEmit.ReactJSX,
"react-jsxdev": JsxEmit.ReactJSXDev,
"react": JsxEmit.React,
}));
/** @internal */

View File

@@ -7,4 +7,4 @@ FileNames::
0.ts
Errors::
error TS6044: Compiler option 'jsx' expects an argument.
error TS6046: Argument for '--jsx' option must be: 'preserve', 'react-native', 'react', 'react-jsx', 'react-jsxdev'.
error TS6046: Argument for '--jsx' option must be: 'preserve', 'react-native', 'react-jsx', 'react-jsxdev', 'react'.

View File

@@ -27,5 +27,5 @@ CompilerOptions::
"configFilePath": "/apath/tsconfig.json"
}
Errors::
error TS6046: Argument for '--jsx' option must be: 'preserve', 'react-native', 'react', 'react-jsx', 'react-jsxdev'.
error TS6046: Argument for '--jsx' option must be: 'preserve', 'react-native', 'react-jsx', 'react-jsxdev', 'react'.

View File

@@ -27,7 +27,7 @@ CompilerOptions::
"configFilePath": "/apath/tsconfig.json"
}
Errors::
tsconfig.json:7:12 - error TS6046: Argument for '--jsx' option must be: 'preserve', 'react-native', 'react', 'react-jsx', 'react-jsxdev'.
tsconfig.json:7:12 - error TS6046: Argument for '--jsx' option must be: 'preserve', 'react-native', 'react-jsx', 'react-jsxdev', 'react'.
7 "jsx": ""
   ~~