Skip to content

Commit e729a0a

Browse files
Andaristeps1lon
andauthored
Port "Deemphasize old JSX transform" (#1809)
Co-authored-by: "Sebastian \"Sebbie\" Silbermann" <[email protected]>
1 parent bc91dd8 commit e729a0a

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

internal/tsoptions/enummaps.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,9 +185,9 @@ var moduleDetectionOptionMap = collections.NewOrderedMapFromList([]collections.M
185185
var jsxOptionMap = collections.NewOrderedMapFromList([]collections.MapEntry[string, any]{
186186
{Key: "preserve", Value: core.JsxEmitPreserve},
187187
{Key: "react-native", Value: core.JsxEmitReactNative},
188-
{Key: "react", Value: core.JsxEmitReact},
189188
{Key: "react-jsx", Value: core.JsxEmitReactJSX},
190189
{Key: "react-jsxdev", Value: core.JsxEmitReactJSXDev},
190+
{Key: "react", Value: core.JsxEmitReact},
191191
})
192192

193193
var InverseJsxOptionMap = collections.NewOrderedMapFromList(func() []collections.MapEntry[core.JsxEmit, string] {

testdata/baselines/reference/tsc/commandLine/does-not-add-color-when-NO_COLOR-is-set.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ default: false
117117

118118
--jsx
119119
Specify what JSX code is generated.
120-
one of: preserve, react-native, react, react-jsx, react-jsxdev
120+
one of: preserve, react-native, react-jsx, react-jsxdev, react
121121
default: undefined
122122

123123
--outFile

testdata/baselines/reference/tsc/commandLine/help.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ default: false
116116

117117
--jsx
118118
Specify what JSX code is generated.
119-
one of: preserve, react-native, react, react-jsx, react-jsxdev
119+
one of: preserve, react-native, react-jsx, react-jsxdev, react
120120
default: undefined
121121

122122
--outFile

testdata/baselines/reference/tsc/commandLine/show-help-with-ExitStatus.DiagnosticsPresent_OutputsSkipped-when-host-cannot-provide-terminal-width.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ default: false
117117

118118
--jsx
119119
Specify what JSX code is generated.
120-
one of: preserve, react-native, react, react-jsx, react-jsxdev
120+
one of: preserve, react-native, react-jsx, react-jsxdev, react
121121
default: undefined
122122

123123
--outFile

testdata/baselines/reference/tsc/commandLine/show-help-with-ExitStatus.DiagnosticsPresent_OutputsSkipped.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ tsc: The TypeScript Compiler - Version FakeTSVersion
158158

159159
 --jsx Specify what JSX code is generated.
160160

161-
one of: preserve, react-native, react, react-jsx, react-jsxdev
161+
one of: preserve, react-native, react-jsx, react-jsxdev, react
162162

163163
default: undefined
164164

testdata/baselines/reference/tscWatch/commandLine/Parse-watch-interval-option-without-tsconfig.json.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ default: false
117117

118118
--jsx
119119
Specify what JSX code is generated.
120-
one of: preserve, react-native, react, react-jsx, react-jsxdev
120+
one of: preserve, react-native, react-jsx, react-jsxdev, react
121121
default: undefined
122122

123123
--outFile

testdata/baselines/reference/tsoptions/commandLineParsing/parseCommandLine/Parse empty options of --jsx.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ FileNames::
99

1010
Errors::
1111
error TS6044: Compiler option 'jsx' expects an argument.
12-
error TS6046: Argument for '--jsx' option must be: 'preserve', 'react-native', 'react', 'react-jsx', 'react-jsxdev'.
12+
error TS6046: Argument for '--jsx' option must be: 'preserve', 'react-native', 'react-jsx', 'react-jsxdev', 'react'.

0 commit comments

Comments
 (0)