diff --git a/internal/tsoptions/enummaps.go b/internal/tsoptions/enummaps.go index faef04dcc8..92fcb428e3 100644 --- a/internal/tsoptions/enummaps.go +++ b/internal/tsoptions/enummaps.go @@ -185,9 +185,9 @@ var moduleDetectionOptionMap = collections.NewOrderedMapFromList([]collections.M var jsxOptionMap = collections.NewOrderedMapFromList([]collections.MapEntry[string, any]{ {Key: "preserve", Value: core.JsxEmitPreserve}, {Key: "react-native", Value: core.JsxEmitReactNative}, - {Key: "react", Value: core.JsxEmitReact}, {Key: "react-jsx", Value: core.JsxEmitReactJSX}, {Key: "react-jsxdev", Value: core.JsxEmitReactJSXDev}, + {Key: "react", Value: core.JsxEmitReact}, }) var InverseJsxOptionMap = collections.NewOrderedMapFromList(func() []collections.MapEntry[core.JsxEmit, string] { diff --git a/testdata/baselines/reference/tsc/commandLine/does-not-add-color-when-NO_COLOR-is-set.js b/testdata/baselines/reference/tsc/commandLine/does-not-add-color-when-NO_COLOR-is-set.js index 685d8ed5b8..b349e1df0e 100644 --- a/testdata/baselines/reference/tsc/commandLine/does-not-add-color-when-NO_COLOR-is-set.js +++ b/testdata/baselines/reference/tsc/commandLine/does-not-add-color-when-NO_COLOR-is-set.js @@ -117,7 +117,7 @@ default: false --jsx Specify what JSX code is generated. -one of: preserve, react-native, react, react-jsx, react-jsxdev +one of: preserve, react-native, react-jsx, react-jsxdev, react default: undefined --outFile diff --git a/testdata/baselines/reference/tsc/commandLine/help.js b/testdata/baselines/reference/tsc/commandLine/help.js index 135bbe9f96..1eb6ad1811 100644 --- a/testdata/baselines/reference/tsc/commandLine/help.js +++ b/testdata/baselines/reference/tsc/commandLine/help.js @@ -116,7 +116,7 @@ default: false --jsx Specify what JSX code is generated. -one of: preserve, react-native, react, react-jsx, react-jsxdev +one of: preserve, react-native, react-jsx, react-jsxdev, react default: undefined --outFile diff --git a/testdata/baselines/reference/tsc/commandLine/show-help-with-ExitStatus.DiagnosticsPresent_OutputsSkipped-when-host-cannot-provide-terminal-width.js b/testdata/baselines/reference/tsc/commandLine/show-help-with-ExitStatus.DiagnosticsPresent_OutputsSkipped-when-host-cannot-provide-terminal-width.js index 2a6e7ccc53..244169b3bb 100644 --- a/testdata/baselines/reference/tsc/commandLine/show-help-with-ExitStatus.DiagnosticsPresent_OutputsSkipped-when-host-cannot-provide-terminal-width.js +++ b/testdata/baselines/reference/tsc/commandLine/show-help-with-ExitStatus.DiagnosticsPresent_OutputsSkipped-when-host-cannot-provide-terminal-width.js @@ -117,7 +117,7 @@ default: false --jsx Specify what JSX code is generated. -one of: preserve, react-native, react, react-jsx, react-jsxdev +one of: preserve, react-native, react-jsx, react-jsxdev, react default: undefined --outFile diff --git a/testdata/baselines/reference/tsc/commandLine/show-help-with-ExitStatus.DiagnosticsPresent_OutputsSkipped.js b/testdata/baselines/reference/tsc/commandLine/show-help-with-ExitStatus.DiagnosticsPresent_OutputsSkipped.js index 69340ddbae..86cc398b85 100644 --- a/testdata/baselines/reference/tsc/commandLine/show-help-with-ExitStatus.DiagnosticsPresent_OutputsSkipped.js +++ b/testdata/baselines/reference/tsc/commandLine/show-help-with-ExitStatus.DiagnosticsPresent_OutputsSkipped.js @@ -158,7 +158,7 @@ tsc: The TypeScript Compiler - Version FakeTSVersion  --jsx Specify what JSX code is generated. - one of: preserve, react-native, react, react-jsx, react-jsxdev + one of: preserve, react-native, react-jsx, react-jsxdev, react default: undefined diff --git a/testdata/baselines/reference/tscWatch/commandLine/Parse-watch-interval-option-without-tsconfig.json.js b/testdata/baselines/reference/tscWatch/commandLine/Parse-watch-interval-option-without-tsconfig.json.js index 0859e4f9f3..6a59db07d6 100644 --- a/testdata/baselines/reference/tscWatch/commandLine/Parse-watch-interval-option-without-tsconfig.json.js +++ b/testdata/baselines/reference/tscWatch/commandLine/Parse-watch-interval-option-without-tsconfig.json.js @@ -117,7 +117,7 @@ default: false --jsx Specify what JSX code is generated. -one of: preserve, react-native, react, react-jsx, react-jsxdev +one of: preserve, react-native, react-jsx, react-jsxdev, react default: undefined --outFile diff --git a/testdata/baselines/reference/tsoptions/commandLineParsing/parseCommandLine/Parse empty options of --jsx.js b/testdata/baselines/reference/tsoptions/commandLineParsing/parseCommandLine/Parse empty options of --jsx.js index e7a82f6c79..ad4d2b9d2a 100644 --- a/testdata/baselines/reference/tsoptions/commandLineParsing/parseCommandLine/Parse empty options of --jsx.js +++ b/testdata/baselines/reference/tsoptions/commandLineParsing/parseCommandLine/Parse empty options of --jsx.js @@ -9,4 +9,4 @@ FileNames:: 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'.