@@ -617,37 +617,6 @@ pub fn compiler_args(
617617 . concat ( ) )
618618}
619619
620- /// Generate compiler arguments for stdout output (no file write).
621- /// This is a convenience wrapper around `compiler_args` with `OutputMode::ToStdout`.
622- pub fn compiler_args_for_stdout (
623- config : & config:: Config ,
624- ast_path : & Path ,
625- file_path : & Path ,
626- has_interface : bool ,
627- project_context : & ProjectContext ,
628- packages : & Option < & AHashMap < String , packages:: Package > > ,
629- is_type_dev : bool ,
630- is_local_dep : bool ,
631- warn_error_override : Option < String > ,
632- module_format : & str ,
633- ) -> Result < Vec < String > > {
634- compiler_args (
635- config,
636- ast_path,
637- file_path,
638- false , // not interface - we want implementation output
639- has_interface,
640- project_context,
641- packages,
642- is_type_dev,
643- is_local_dep,
644- warn_error_override,
645- OutputMode :: ToStdout {
646- module_format : module_format. to_string ( ) ,
647- } ,
648- )
649- }
650-
651620/// Compile a single file and return its JavaScript output on stdout.
652621/// This is used by `compile_one` for the target file only.
653622pub fn compile_file_to_stdout (
@@ -679,17 +648,20 @@ pub fn compile_file_to_stdout(
679648 let has_interface = module. get_interface ( ) . is_some ( ) ;
680649 let is_type_dev = module. is_type_dev ;
681650
682- let args = compiler_args_for_stdout (
651+ let args = compiler_args (
683652 & package. config ,
684653 ast_path,
685654 implementation_file_path,
655+ false , // not interface - we want implementation output
686656 has_interface,
687657 project_context,
688658 & Some ( packages) ,
689659 is_type_dev,
690660 package. is_local_dep ,
691661 warn_error_override,
692- module_format,
662+ OutputMode :: ToStdout {
663+ module_format : module_format. to_string ( ) ,
664+ } ,
693665 ) ?;
694666
695667 let output = Command :: new ( & compiler_info. bsc_path )
0 commit comments