Skip to content

Commit 54d80ed

Browse files
authored
Merge pull request #4452 from Coobaha/gentype-language
fix gentypeconfig.language parsing
2 parents 67c554d + 0803d0e commit 54d80ed

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

jscomp/bsb/bsb_parse_sources.ml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -491,9 +491,13 @@ let clean_re_js root =
491491
| None -> Set_string.empty
492492
in
493493
let gentype_language =
494-
match Map_string.find_opt map Bsb_build_schemas.language with
494+
match Map_string.find_opt map Bsb_build_schemas.gentypeconfig with
495495
| None -> ""
496-
| Some (Str {str}) -> str
496+
| Some (Obj { map }) ->
497+
(match Map_string.find_opt map Bsb_build_schemas.language with
498+
| None -> ""
499+
| Some (Str {str}) -> str
500+
| Some _ -> "")
497501
| Some _ -> ""
498502
in
499503
Ext_option.iter (Map_string.find_opt map Bsb_build_schemas.sources) begin fun config ->

0 commit comments

Comments
 (0)