From 34e98fa59cd70f7ce64e587bef41fac536a3076b Mon Sep 17 00:00:00 2001 From: Yoshiya Hinosawa Date: Sat, 5 Sep 2020 20:31:14 +0900 Subject: feat(install): bundle before installation (#5276) --- cli/main.rs | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'cli/main.rs') diff --git a/cli/main.rs b/cli/main.rs index 574ba9ed2..e6fab71c8 100644 --- a/cli/main.rs +++ b/cli/main.rs @@ -304,15 +304,7 @@ async fn install_command( root: Option, force: bool, ) -> Result<(), ErrBox> { - // Firstly fetch and compile module, this step ensures that module exists. - let mut fetch_flags = flags.clone(); - fetch_flags.reload = true; - let global_state = GlobalState::new(fetch_flags)?; - let main_module = ModuleSpecifier::resolve_url_or_path(&module_url)?; - let mut worker = MainWorker::create(&global_state, main_module.clone())?; - worker.preload_module(&main_module).await?; - installer::install(flags, &module_url, args, name, root, force) - .map_err(ErrBox::from) + installer::install(flags, &module_url, args, name, root, force).await } async fn lint_command( -- cgit v1.2.3