File tree 2 files changed +16
-16
lines changed
2 files changed +16
-16
lines changed Original file line number Diff line number Diff line change @@ -298,16 +298,16 @@ let interpret_json ~(package_kind : Bsb_package_kind.t) ~(per_proj_dir : string)
298
298
(* ~namespace *)
299
299
sources
300
300
in
301
+ let bsc_flags = extract_string_list map Bsb_build_schemas. bsc_flags in
302
+ let jsx = Bsb_jsx. from_map map in
301
303
let jsx, bsc_flags =
302
304
match package_kind with
303
- | (Pinned_dependency x | Dependency x)
304
- when List. mem package_name x.jsx.v3_dependencies ->
305
- ( { (Bsb_jsx. from_map map) with version = Some Jsx_v3 },
306
- " -open ReactV3"
307
- :: extract_string_list map Bsb_build_schemas. bsc_flags )
308
- | _ ->
309
- ( Bsb_jsx. from_map map,
310
- extract_string_list map Bsb_build_schemas. bsc_flags )
305
+ | Pinned_dependency x | Dependency x ->
306
+ if List. mem package_name x.jsx.v3_dependencies then
307
+ ( { jsx with version = Some Jsx_v3 },
308
+ " -open ReactV3" :: bsc_flags )
309
+ else (x.jsx, bsc_flags)
310
+ | _ -> (jsx, bsc_flags)
311
311
in
312
312
{
313
313
pinned_dependencies;
Original file line number Diff line number Diff line change @@ -10593,16 +10593,16 @@ let interpret_json ~(package_kind : Bsb_package_kind.t) ~(per_proj_dir : string)
10593
10593
(* ~namespace *)
10594
10594
sources
10595
10595
in
10596
+ let bsc_flags = extract_string_list map Bsb_build_schemas.bsc_flags in
10597
+ let jsx = Bsb_jsx.from_map map in
10596
10598
let jsx, bsc_flags =
10597
10599
match package_kind with
10598
- | (Pinned_dependency x | Dependency x)
10599
- when List.mem package_name x.jsx.v3_dependencies ->
10600
- ( { (Bsb_jsx.from_map map) with version = Some Jsx_v3 },
10601
- "-open ReactV3"
10602
- :: extract_string_list map Bsb_build_schemas.bsc_flags )
10603
- | _ ->
10604
- ( Bsb_jsx.from_map map,
10605
- extract_string_list map Bsb_build_schemas.bsc_flags )
10600
+ | Pinned_dependency x | Dependency x ->
10601
+ if List.mem package_name x.jsx.v3_dependencies then
10602
+ ( { jsx with version = Some Jsx_v3 },
10603
+ "-open ReactV3" :: bsc_flags )
10604
+ else (x.jsx, bsc_flags)
10605
+ | _ -> (jsx, bsc_flags)
10606
10606
in
10607
10607
{
10608
10608
pinned_dependencies;
You can’t perform that action at this time.
0 commit comments