Skip to content

Commit 2bd0648

Browse files
committed
convert bsb/
1 parent c90ca60 commit 2bd0648

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

jscomp/bsb/bsb_jsx.ml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
type version = Jsx_v3 | Jsx_v4
2-
type module_ = React | Generic of {moduleName: string}
2+
type module_ = React | Generic of {module_name: string}
33
type mode = Classic | Automatic
44
type dependencies = string list
55

@@ -15,7 +15,7 @@ let encode_no_nl jsx =
1515
| None -> ""
1616
| Some Jsx_v3 -> "3"
1717
| Some Jsx_v4 -> "4")
18-
^ (match jsx.module_ with None -> "" | Some React -> "React" | Some Generic {moduleName} -> moduleName)
18+
^ (match jsx.module_ with None -> "" | Some React -> "React" | Some Generic {module_name} -> module_name)
1919
^
2020
match jsx.mode with
2121
| None -> ""
@@ -58,7 +58,7 @@ let from_map map =
5858
| Some (Str { str }) -> (
5959
match str with
6060
| "react" -> module_ := Some React
61-
| moduleName -> module_ := Some (Generic {moduleName}))
61+
| module_name -> module_ := Some (Generic {module_name}))
6262
| Some x ->
6363
Bsb_exception.config_error x
6464
"Unexpected input (jsx module name) for jsx module"

jscomp/bsb/bsb_ninja_rule.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ let make_custom_rules ~(gentype_config : Bsb_config_types.gentype_config)
170170
(match jsx.module_ with
171171
| None -> ()
172172
| Some React -> Ext_buffer.add_string buf " -bs-jsx-module react"
173-
| Some Generic {moduleName} -> Ext_buffer.add_string buf (" -bs-jsx-module " ^ moduleName));
173+
| Some Generic {module_name} -> Ext_buffer.add_string buf (" -bs-jsx-module " ^ module_name));
174174
(match jsx.mode with
175175
| None -> ()
176176
| Some Classic -> Ext_buffer.add_string buf " -bs-jsx-mode classic"

0 commit comments

Comments
 (0)