File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
1
type version = Jsx_v3 | Jsx_v4
2
- type module_ = React | Generic of {moduleName : string }
2
+ type module_ = React | Generic of {module_name : string }
3
3
type mode = Classic | Automatic
4
4
type dependencies = string list
5
5
@@ -15,7 +15,7 @@ let encode_no_nl jsx =
15
15
| None -> " "
16
16
| Some Jsx_v3 -> " 3"
17
17
| 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 )
19
19
^
20
20
match jsx.mode with
21
21
| None -> " "
@@ -58,7 +58,7 @@ let from_map map =
58
58
| Some (Str { str } ) -> (
59
59
match str with
60
60
| "react" -> module_ := Some React
61
- | moduleName -> module_ := Some (Generic {moduleName }))
61
+ | module_name -> module_ := Some (Generic {module_name }))
62
62
| Some x ->
63
63
Bsb_exception. config_error x
64
64
" Unexpected input (jsx module name) for jsx module"
Original file line number Diff line number Diff line change @@ -170,7 +170,7 @@ let make_custom_rules ~(gentype_config : Bsb_config_types.gentype_config)
170
170
(match jsx.module_ with
171
171
| None -> ()
172
172
| 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 ));
174
174
(match jsx.mode with
175
175
| None -> ()
176
176
| Some Classic -> Ext_buffer. add_string buf " -bs-jsx-mode classic"
You can’t perform that action at this time.
0 commit comments