Skip to content

Commit 559b507

Browse files
committed
Add new React function component jsx ppx
1 parent 124325e commit 559b507

File tree

8 files changed

+2752
-51
lines changed

8 files changed

+2752
-51
lines changed

jscomp/bsb/bsb_config_parse.ml

+3-1
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,9 @@ let interpret_json
281281
Some (Filename.quote
282282
(Filename.concat bsc_dir Literals.reactjs_jsx_ppx_2_exe) )
283283
| "3" ->
284-
Bsb_exception.errorf ~loc "JSX version 3 is deprecated, please downgrade to 1.x for version 3"
284+
reason_react_jsx :=
285+
Some (Filename.quote
286+
(Filename.concat bsc_dir Literals.reactjs_jsx_ppx_3_exe) )
285287
| _ -> Bsb_exception.errorf ~loc "Unsupported jsx version %s" flo
286288
end
287289
| Some x -> Bsb_exception.config_error x

lib/4.02.3/bsb.ml

+3-1
Original file line numberDiff line numberDiff line change
@@ -11878,7 +11878,9 @@ let interpret_json
1187811878
Some (Filename.quote
1187911879
(Filename.concat bsc_dir Literals.reactjs_jsx_ppx_2_exe) )
1188011880
| "3" ->
11881-
Bsb_exception.errorf ~loc "JSX version 3 is deprecated, please downgrade to 1.x for version 3"
11881+
reason_react_jsx :=
11882+
Some (Filename.quote
11883+
(Filename.concat bsc_dir Literals.reactjs_jsx_ppx_3_exe) )
1188211884
| _ -> Bsb_exception.errorf ~loc "Unsupported jsx version %s" flo
1188311885
end
1188411886
| Some x -> Bsb_exception.config_error x

lib/4.02.3/reactjs_jsx_ppx_v2.ml

+722-46
Large diffs are not rendered by default.

lib/4.02.3/unstable/bsb_native.ml

+3-1
Original file line numberDiff line numberDiff line change
@@ -11878,7 +11878,9 @@ let interpret_json
1187811878
Some (Filename.quote
1187911879
(Filename.concat bsc_dir Literals.reactjs_jsx_ppx_2_exe) )
1188011880
| "3" ->
11881-
Bsb_exception.errorf ~loc "JSX version 3 is deprecated, please downgrade to 1.x for version 3"
11881+
reason_react_jsx :=
11882+
Some (Filename.quote
11883+
(Filename.concat bsc_dir Literals.reactjs_jsx_ppx_3_exe) )
1188211884
| _ -> Bsb_exception.errorf ~loc "Unsupported jsx version %s" flo
1188311885
end
1188411886
| Some x -> Bsb_exception.config_error x

0 commit comments

Comments
 (0)