diff options
author | Kitson Kelly <me@kitsonkelly.com> | 2020-06-30 21:10:51 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-30 13:10:51 +0200 |
commit | 062d1a41ea6ab22bab36e54d1f1222fc09351bf3 (patch) | |
tree | b954d72e6214bf7d0f11837a97424209606fbad9 /cli/main.rs | |
parent | 6844c3ac0ea4afcb799bba4945b400a011eb5d84 (diff) |
refactor: Improvements to TsCompiler and its tests (#6576)
Diffstat (limited to 'cli/main.rs')
-rw-r--r-- | cli/main.rs | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/cli/main.rs b/cli/main.rs index 395fe54da..7dcc7326a 100644 --- a/cli/main.rs +++ b/cli/main.rs @@ -425,8 +425,6 @@ async fn bundle_command( } debug!(">>>>> bundle START"); - let compiler_config = tsc::CompilerConfig::load(flags.config_path.clone())?; - let global_state = GlobalState::new(flags)?; info!( @@ -435,14 +433,10 @@ async fn bundle_command( module_specifier.to_string() ); - let output = tsc::bundle( - &global_state, - compiler_config, - module_specifier, - global_state.maybe_import_map.clone(), - global_state.flags.unstable, - ) - .await?; + let output = global_state + .ts_compiler + .bundle(global_state.clone(), module_specifier) + .await?; debug!(">>>>> bundle END"); |