Skip to content

Commit

Permalink
Merge pull request #3452 from rickyvetter/jsxppx
Browse files Browse the repository at this point in the history
Add new React function component jsx ppx
  • Loading branch information
bobzhang committed Mar 28, 2019
2 parents d07b76f + 4e65817 commit cf06fd3
Show file tree
Hide file tree
Showing 11 changed files with 3,798 additions and 51 deletions.
4 changes: 3 additions & 1 deletion jscomp/bsb/bsb_config_parse.ml
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,9 @@ let interpret_json
Some (Filename.quote
(Filename.concat bsc_dir Literals.reactjs_jsx_ppx_2_exe) )
| "3" ->
Bsb_exception.errorf ~loc "JSX version 3 is deprecated, please downgrade to 1.x for version 3"
reason_react_jsx :=
Some (Filename.quote
(Filename.concat bsc_dir Literals.reactjs_jsx_ppx_3_exe) )
| _ -> Bsb_exception.errorf ~loc "Unsupported jsx version %s" flo
end
| Some x -> Bsb_exception.config_error x
Expand Down
4 changes: 3 additions & 1 deletion lib/4.02.3/bsb.ml
Original file line number Diff line number Diff line change
Expand Up @@ -11878,7 +11878,9 @@ let interpret_json
Some (Filename.quote
(Filename.concat bsc_dir Literals.reactjs_jsx_ppx_2_exe) )
| "3" ->
Bsb_exception.errorf ~loc "JSX version 3 is deprecated, please downgrade to 1.x for version 3"
reason_react_jsx :=
Some (Filename.quote
(Filename.concat bsc_dir Literals.reactjs_jsx_ppx_3_exe) )
| _ -> Bsb_exception.errorf ~loc "Unsupported jsx version %s" flo
end
| Some x -> Bsb_exception.config_error x
Expand Down
781 changes: 735 additions & 46 deletions lib/4.02.3/reactjs_jsx_ppx_v2.ml

Large diffs are not rendered by default.

Loading

0 comments on commit cf06fd3

Please sign in to comment.