summaryrefslogtreecommitdiff
path: root/cli/standalone
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2023-07-24 15:35:13 -0400
committerGitHub <noreply@github.com>2023-07-24 15:35:13 -0400
commit40008c73bb3b0b146b3539929ab5bd826db4c5e3 (patch)
tree35c29811ce5d2a17ac31af05a231d57d36c47c53 /cli/standalone
parentd7a9ed9714c2a2c3a8c05ef020d495f5be03972a (diff)
refactor(ext/node): CjsCodeAnalyzer - analyze_cjs optionally pass source text (#19896)
Diffstat (limited to 'cli/standalone')
-rw-r--r--cli/standalone/mod.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/cli/standalone/mod.rs b/cli/standalone/mod.rs
index d08df4b12..dfa71cf6f 100644
--- a/cli/standalone/mod.rs
+++ b/cli/standalone/mod.rs
@@ -366,7 +366,8 @@ pub async fn run(
let cjs_resolutions = Arc::new(CjsResolutionStore::default());
let cache_db = Caches::new(deno_dir_provider.clone());
let node_analysis_cache = NodeAnalysisCache::new(cache_db.node_analysis_db());
- let cjs_esm_code_analyzer = CliCjsCodeAnalyzer::new(node_analysis_cache);
+ let cjs_esm_code_analyzer =
+ CliCjsCodeAnalyzer::new(node_analysis_cache, fs.clone());
let node_code_translator = Arc::new(NodeCodeTranslator::new(
cjs_esm_code_analyzer,
fs.clone(),