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

Commit fff41d1

Browse files
authored
Fix jsx mode being ignored when set via @@jsxConfig (#727)
1 parent 9556d77 commit fff41d1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cli/reactjs_jsx_ppx.ml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ let getJsxConfigByKey ~key ~type_ recordFields =
2828
Some value
2929
| ( String,
3030
{txt = Lident k},
31-
{pexp_desc = Pexp_constant (Pconst_string (value, None))} )
31+
(* accept both normal strings and "js" strings *)
32+
{pexp_desc = Pexp_constant (Pconst_string (value, _))} )
3233
when k = key ->
3334
Some value
3435
| _ -> None)

0 commit comments

Comments
 (0)