Skip to content

Commit e840abc

Browse files
committed
fix to inhert jsx settings to deps
1 parent b4cf54d commit e840abc

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

compiler/bsb/bsb_config_parse.ml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,12 @@ let interpret_json ~(filename : string) ~(json : Ext_json_types.t)
261261
in
262262
let bsc_flags = extract_string_list map Bsb_build_schemas.bsc_flags in
263263
let jsx = Bsb_jsx.from_map map in
264+
let jsx, bsc_flags =
265+
match package_kind with
266+
| Pinned_dependency x | Dependency x ->
267+
({jsx with version = x.jsx.version}, bsc_flags)
268+
| Toplevel -> (jsx, bsc_flags)
269+
in
264270
{
265271
pinned_dependencies;
266272
gentype_config;

0 commit comments

Comments
 (0)