Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion mordant-baseline.toml
Original file line number Diff line number Diff line change
@@ -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]
Expand Down
19 changes: 11 additions & 8 deletions src/bundler/bundle_v2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
Loading