From c824eb5817db675be4d9966a0d1a43d90dfa61fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Sat, 25 Jan 2020 18:53:16 +0100 Subject: refactor: Modules and Loader trait (#3791) * move is_dyn_import argument from Loader::resolve to Loader::load - it was always kind of strange that resolve() checks permissions. * change argument type from &str to &ModuleSpecifier where applicable --- cli/lib.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'cli/lib.rs') diff --git a/cli/lib.rs b/cli/lib.rs index 6fba5bda8..3b174bb75 100644 --- a/cli/lib.rs +++ b/cli/lib.rs @@ -205,7 +205,6 @@ async fn print_file_info( eprintln!("\n{}", e.to_string()); std::process::exit(1); } - let compiled = maybe_compiled.unwrap(); if out.media_type == msg::MediaType::TypeScript || (out.media_type == msg::MediaType::JavaScript && global_state_.ts_compiler.compile_js) @@ -235,7 +234,7 @@ async fn print_file_info( } let isolate = worker.isolate.try_lock().unwrap(); - if let Some(deps) = isolate.modules.deps(&compiled.name) { + if let Some(deps) = isolate.modules.deps(&module_specifier) { println!("{}{}", colors::bold("deps:\n".to_string()), deps.name); if let Some(ref depsdeps) = deps.deps { for d in depsdeps { -- cgit v1.2.3