mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-04-17 13:48:46 -05:00
Deemphasize old JSX transform (#61586)
This commit is contained in:
committed by
GitHub
parent
6afd0fb73f
commit
0a1aa6d6eb
@@ -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 */
|
||||
|
||||
@@ -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'.
|
||||
|
||||
@@ -27,5 +27,5 @@ CompilerOptions::
|
||||
"configFilePath": "/apath/tsconfig.json"
|
||||
}
|
||||
Errors::
|
||||
[91merror[0m[90m TS6046: [0mArgument for '--jsx' option must be: 'preserve', 'react-native', 'react', 'react-jsx', 'react-jsxdev'.
|
||||
[91merror[0m[90m TS6046: [0mArgument for '--jsx' option must be: 'preserve', 'react-native', 'react-jsx', 'react-jsxdev', 'react'.
|
||||
|
||||
|
||||
@@ -27,7 +27,7 @@ CompilerOptions::
|
||||
"configFilePath": "/apath/tsconfig.json"
|
||||
}
|
||||
Errors::
|
||||
[96mtsconfig.json[0m:[93m7[0m:[93m12[0m - [91merror[0m[90m TS6046: [0mArgument for '--jsx' option must be: 'preserve', 'react-native', 'react', 'react-jsx', 'react-jsxdev'.
|
||||
[96mtsconfig.json[0m:[93m7[0m:[93m12[0m - [91merror[0m[90m TS6046: [0mArgument for '--jsx' option must be: 'preserve', 'react-native', 'react-jsx', 'react-jsxdev', 'react'.
|
||||
|
||||
[7m7[0m "jsx": ""
|
||||
[7m [0m [91m ~~[0m
|
||||
|
||||
Reference in New Issue
Block a user