summaryrefslogtreecommitdiff
path: root/cli/module_loader.rs
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2024-01-10 00:20:52 +0100
committerGitHub <noreply@github.com>2024-01-09 23:20:52 +0000
commit69959aa01fab8ccc482cb3ee218af4e65d3fbc6e (patch)
tree1221798cf514662cd0e52b3feaa0d16b58aa6697 /cli/module_loader.rs
parent741afc4b94427588c628925fef464623d373430f (diff)
fix: update deno_lint and swc (#21718)
Co-authored-by: David Sherret <dsherret@gmail.com>
Diffstat (limited to 'cli/module_loader.rs')
-rw-r--r--cli/module_loader.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/cli/module_loader.rs b/cli/module_loader.rs
index 9a2c511ff..6fbeb8770 100644
--- a/cli/module_loader.rs
+++ b/cli/module_loader.rs
@@ -138,8 +138,8 @@ impl ModuleLoadPreparer {
.as_ref()
.map(|r| r.as_reporter());
- let store = self.parsed_source_cache.as_store();
- let analyzer = self.module_info_cache.as_module_analyzer(None, &*store);
+ let parser = self.parsed_source_cache.as_capturing_parser();
+ let analyzer = self.module_info_cache.as_module_analyzer(&parser);
log::debug!("Creating module graph.");
let mut graph_update_permit =
@@ -163,8 +163,10 @@ impl ModuleLoadPreparer {
file_system: Some(&DenoGraphFsAdapter(self.fs.as_ref())),
resolver: Some(graph_resolver),
npm_resolver: Some(graph_npm_resolver),
+ module_parser: Some(&parser),
module_analyzer: Some(&analyzer),
reporter: maybe_file_watcher_reporter,
+ workspace_fast_check: false,
workspace_members,
},
)