diff options
Diffstat (limited to 'cli/graph_util.rs')
-rw-r--r-- | cli/graph_util.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cli/graph_util.rs b/cli/graph_util.rs index 1653052e5..3623f49d0 100644 --- a/cli/graph_util.rs +++ b/cli/graph_util.rs @@ -4,6 +4,7 @@ use crate::args::CliOptions; use crate::args::Lockfile; use crate::args::TsTypeLib; use crate::cache; +use crate::cache::GlobalHttpCache; use crate::cache::ParsedSourceCache; use crate::colors; use crate::errors::get_error_class_name; @@ -174,6 +175,7 @@ pub struct ModuleGraphBuilder { maybe_file_watcher_reporter: Option<FileWatcherReporter>, emit_cache: cache::EmitCache, file_fetcher: Arc<FileFetcher>, + global_http_cache: Arc<GlobalHttpCache>, type_checker: Arc<TypeChecker>, } @@ -188,6 +190,7 @@ impl ModuleGraphBuilder { maybe_file_watcher_reporter: Option<FileWatcherReporter>, emit_cache: cache::EmitCache, file_fetcher: Arc<FileFetcher>, + global_http_cache: Arc<GlobalHttpCache>, type_checker: Arc<TypeChecker>, ) -> Self { Self { @@ -199,6 +202,7 @@ impl ModuleGraphBuilder { maybe_file_watcher_reporter, emit_cache, file_fetcher, + global_http_cache, type_checker, } } @@ -345,6 +349,7 @@ impl ModuleGraphBuilder { self.emit_cache.clone(), self.file_fetcher.clone(), self.options.resolve_file_header_overrides(), + self.global_http_cache.clone(), permissions, self.options.node_modules_dir_specifier(), ) |