@@ -5,7 +5,7 @@ mod dependency_cycle;
5
5
use super :: build_types:: * ;
6
6
use super :: logs;
7
7
use super :: packages;
8
- use crate :: bsconfig ;
8
+ use crate :: config ;
9
9
use crate :: helpers;
10
10
use ahash:: { AHashMap , AHashSet } ;
11
11
use console:: style;
@@ -359,8 +359,8 @@ pub fn compile(
359
359
}
360
360
361
361
pub fn compiler_args (
362
- config : & bsconfig :: Config ,
363
- root_config : & bsconfig :: Config ,
362
+ config : & config :: Config ,
363
+ root_config : & config :: Config ,
364
364
ast_path : & str ,
365
365
version : & str ,
366
366
file_path : & str ,
@@ -374,11 +374,11 @@ pub fn compiler_args(
374
374
) -> Vec < String > {
375
375
let normal_deps = config. bs_dependencies . as_ref ( ) . unwrap_or ( & vec ! [ ] ) . to_owned ( ) ;
376
376
377
- let bsc_flags = bsconfig :: flatten_flags ( & config. bsc_flags ) ;
377
+ let bsc_flags = config :: flatten_flags ( & config. bsc_flags ) ;
378
378
// don't compile dev-deps yet
379
379
// let dev_deps = source
380
380
// .package
381
- // .bsconfig
381
+ // .config
382
382
// .bs_dev_dependencies
383
383
// .as_ref()
384
384
// .unwrap_or(&vec![])
@@ -442,10 +442,10 @@ pub fn compiler_args(
442
442
} ;
443
443
444
444
let warn_error = match warnings. error {
445
- Some ( bsconfig :: Error :: Catchall ( true ) ) => {
445
+ Some ( config :: Error :: Catchall ( true ) ) => {
446
446
vec ! [ "-warn-error" . to_string( ) , "A" . to_string( ) ]
447
447
}
448
- Some ( bsconfig :: Error :: Qualified ( errors) ) => {
448
+ Some ( config :: Error :: Qualified ( errors) ) => {
449
449
vec ! [ "-warn-error" . to_string( ) , errors. to_string( ) ]
450
450
}
451
451
_ => vec ! [ ] ,
@@ -532,8 +532,8 @@ fn compile_file(
532
532
let module_name = helpers:: file_path_to_module_name ( implementation_file_path, & package. namespace ) ;
533
533
let has_interface = module. get_interface ( ) . is_some ( ) ;
534
534
let to_mjs_args = compiler_args (
535
- & package. bsconfig ,
536
- & root_package. bsconfig ,
535
+ & package. config ,
536
+ & root_package. config ,
537
537
ast_path,
538
538
version,
539
539
implementation_file_path,
0 commit comments