Skip to content
This repository was archived by the owner on Jun 15, 2023. It is now read-only.

Commit b693237

Browse files
committed
Location of ReasonReact.fragment should be ghost.
See #519
1 parent 9d0d835 commit b693237

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cli/reactjs_jsx_ppx_v3.ml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -873,6 +873,7 @@ let jsxMapper () =
873873
(* no JSX attribute *)
874874
| [], _ -> default_mapper.expr mapper expression
875875
| _, nonJSXAttributes ->
876+
let loc = {loc with loc_ghost= true} in
876877
let fragment = Exp.ident ~loc { loc; txt = Ldot (Lident "ReasonReact", "fragment") } in
877878
let childrenExpr = transformChildrenIfList ~loc ~mapper listItems in
878879
let args =

0 commit comments

Comments
 (0)