diff --git a/mordant-baseline.toml b/mordant-baseline.toml index 075aa7b79b3c..9f46479c0afd 100644 --- a/mordant-baseline.toml +++ b/mordant-baseline.toml @@ -1,7 +1,6 @@ [bun_ast] [bun_bundler] -"defaulted_failure:src/bundler/bundle_v2.rs" = 2 "narrowed_two_ways:src/bundler/bundle_v2.rs" = 1 [bun_core] diff --git a/src/bundler/bundle_v2.rs b/src/bundler/bundle_v2.rs index 2542489dccfc..3a0ba72d72c0 100644 --- a/src/bundler/bundle_v2.rs +++ b/src/bundler/bundle_v2.rs @@ -4815,14 +4815,17 @@ pub mod bv2_impl { return; }; let mut resolved = resolved; - let Ok(source_index) = this.enqueue_entry_item( - &mut resolved, - true, - target, - resolve.import_record.loader, - ) else { - return; - }; + // `enqueue_entry_item` fails only on allocation, after it has + // already counted the pending parse task: a silent return here + // would leave the build waiting for a task that never runs. + let source_index = this + .enqueue_entry_item( + &mut resolved, + true, + target, + resolve.import_record.loader, + ) + .expect("oom"); // Store the original entry point name for virtual entries that fall back to file resolution if let Some(idx) = source_index {