summaryrefslogtreecommitdiff
path: root/cli/graph_util.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cli/graph_util.rs')
-rw-r--r--cli/graph_util.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/cli/graph_util.rs b/cli/graph_util.rs
index 2f9ee8d93..7f664420c 100644
--- a/cli/graph_util.rs
+++ b/cli/graph_util.rs
@@ -481,7 +481,11 @@ impl ModuleGraphBuilder {
}
}
- let maybe_imports = self.options.to_maybe_imports()?;
+ let maybe_imports = if options.graph_kind.include_types() {
+ self.options.to_compiler_option_types()?
+ } else {
+ Vec::new()
+ };
let analyzer = self
.module_info_cache
.as_module_analyzer(&self.parsed_source_cache);