Skip to content

Commit 5213285

Browse files
committed
fix to inhert jsx settings to deps
1 parent 0898ba6 commit 5213285

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

compiler/bsb/bsb_config_parse.ml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,11 @@ let interpret_json
266266
in
267267
let bsc_flags = extract_string_list map Bsb_build_schemas.bsc_flags in
268268
let jsx = Bsb_jsx.from_map map in
269+
let jsx, bsc_flags =
270+
match package_kind with
271+
| Pinned_dependency x | Dependency x -> ({jsx with version = x.jsx.version}, bsc_flags)
272+
| Toplevel -> (jsx, bsc_flags)
273+
in
269274
{
270275
pinned_dependencies;
271276
gentype_config;

0 commit comments

Comments
 (0)