diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2024-07-09 17:07:16 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-09 17:07:16 -0400 |
commit | 43d10a558b72ef4a079358521d22447d095e0097 (patch) | |
tree | 91ea25bd876639e7535f726cade87df1ffc0a869 /cli/graph_util.rs | |
parent | e5c3c21e95bd6c8cfb0d26de8f79684709d64e81 (diff) |
fix: do not download compilerOptions -> types when not type checking (#24473)
Closes https://github.com/denoland/deno/issues/22738
Diffstat (limited to 'cli/graph_util.rs')
-rw-r--r-- | cli/graph_util.rs | 6 |
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); |