diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2020-01-25 18:53:16 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-25 18:53:16 +0100 |
commit | c824eb5817db675be4d9966a0d1a43d90dfa61fd (patch) | |
tree | 400906eb76f95b3457a15c90baca58ecd193b22f /cli/lib.rs | |
parent | 37a7b01d5cf555bbc57d74dc9e04000115ec4867 (diff) |
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
Diffstat (limited to 'cli/lib.rs')
-rw-r--r-- | cli/lib.rs | 3 |
1 files changed, 1 insertions, 2 deletions
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 { |