@@ -179,17 +179,6 @@ let check_stdlib (map : json_map) cwd (*built_in_package*) =
179179      |  _  -> assert  false 
180180
181181    end 
182- let  extract_bs_suffix_exn  (map  : json_map ) = 
183-   match  Map_string. find_opt map Bsb_build_schemas. suffix with 
184-   |  None  -> false 
185-   |  Some  (Str {str}  as  config  ) ->
186-     if  str =  Literals. suffix_js then  false 
187-     else  if  str =  Literals. suffix_bs_js then  true 
188-     else  Bsb_exception. config_error config
189-         " expect .bs.js or .js string here" 
190-   |  Some  config  ->
191-     Bsb_exception. config_error config
192-       " expect .bs.js or .js string here" 
193182
194183let  extract_gentype_config  (map  : json_map ) cwd 
195184  : Bsb_config_types.gentype_config option  = 
@@ -402,7 +391,6 @@ let interpret_json
402391      extract_package_name_and_namespace  map in 
403392    let  refmt =  extract_refmt map per_proj_dir in 
404393    let  gentype_config  =  extract_gentype_config map per_proj_dir in 
405-     let  bs_suffix =  extract_bs_suffix_exn map in 
406394    (*  The default situation is empty *) 
407395    let  built_in_package =  check_stdlib map per_proj_dir in 
408396    let  package_specs = 
@@ -411,6 +399,7 @@ let interpret_json
411399        Bsb_package_specs. from_json x
412400      |  None  ->  Bsb_package_specs. default_package_specs
413401    in 
402+     let  bs_suffixes =  Bsb_package_specs. extract_in_source_bs_suffixes package_specs in 
414403    let  pp_flags  : string option  = 
415404      extract_string map Bsb_build_schemas. pp_flags (fun  p  ->
416405        if  p =  " " then 
@@ -434,12 +423,11 @@ let interpret_json
434423            ~toplevel 
435424            ~root:  per_proj_dir
436425            ~cut_generators 
437-             ~bs_suffix  
426+             ~bs_suffixes  
438427            ~namespace 
439428            sources in 
440429        {
441430          gentype_config;
442-           bs_suffix ;
443431          package_name ;
444432          namespace ;
445433          warning =  extract_warning map;
0 commit comments