diff options
Diffstat (limited to 'cli/tools/bench.rs')
-rw-r--r-- | cli/tools/bench.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cli/tools/bench.rs b/cli/tools/bench.rs index 447cb1fcb..cd6e91c9f 100644 --- a/cli/tools/bench.rs +++ b/cli/tools/bench.rs @@ -642,7 +642,7 @@ pub async fn run_benchmarks_with_watch( output: &mut HashSet<&'a ModuleSpecifier>, no_check: bool, ) { - if let Some(module) = maybe_module { + if let Some(module) = maybe_module.and_then(|m| m.esm()) { for dep in module.dependencies.values() { if let Some(specifier) = &dep.get_code() { if !output.contains(specifier) { @@ -671,6 +671,7 @@ pub async fn run_benchmarks_with_watch( } } } + // This bench module and all it's dependencies let mut modules = HashSet::new(); modules.insert(&specifier); |