Skip to content

Commit 724ee3d

Browse files
committed
Hook up V3 jsx.
1 parent e4e5427 commit 724ee3d

File tree

7 files changed

+7435
-2961
lines changed

7 files changed

+7435
-2961
lines changed

jscomp/frontend/ppx_entry.ml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@ let rewrite_signature (ast : Parsetree.signature) : Parsetree.signature =
2929
Ast_config.iter_on_bs_config_sigi ast;
3030
let ast =
3131
match !Js_config.jsx_version with
32-
| 3 -> Reactjs_jsx_ppx_v3.rewrite_signature ast
32+
| 3 ->
33+
Reactjs_jsx_ppx.rewrite_signature ~jsxVersion:3 ~jsxModule:""
34+
~jsxMode:"" ast
3335
| _ -> ast
3436
(* react-jsx ppx relies on built-in ones like `##` *)
3537
in
@@ -45,7 +47,9 @@ let rewrite_implementation (ast : Parsetree.structure) : Parsetree.structure =
4547
Ast_config.iter_on_bs_config_stru ast;
4648
let ast =
4749
match !Js_config.jsx_version with
48-
| 3 -> Reactjs_jsx_ppx_v3.rewrite_implementation ast
50+
| 3 ->
51+
Reactjs_jsx_ppx.rewrite_implementation ~jsxVersion:3 ~jsxModule:""
52+
~jsxMode:"" ast
4953
| _ -> ast
5054
in
5155
if !Js_config.no_builtin_ppx then ast

0 commit comments

Comments
 (0)