Skip to content

Commit

Permalink
perf: merge_exports
Browse files Browse the repository at this point in the history
  • Loading branch information
SyMind committed Feb 12, 2025
1 parent dc653b9 commit 935b45b
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ impl<'a> FlagDependencyExportsState<'a> {
global_export_info.can_mangle,
global_export_info.terminal_binding,
None::<&Vec<ExportNameOrSpec>>,
global_export_info.from.cloned(),
global_export_info.from,
None::<&rspack_core::Nullable<Vec<Atom>>>,
global_export_info.priority,
false,
Expand All @@ -246,9 +246,9 @@ impl<'a> FlagDependencyExportsState<'a> {
.unwrap_or(global_export_info.terminal_binding),
spec.exports.as_ref(),
if spec.from.is_some() {
spec.from.clone()
spec.from.as_ref()
} else {
global_export_info.from.cloned()
global_export_info.from
},
spec.export.as_ref(),
match spec.priority {
Expand Down

0 comments on commit 935b45b

Please sign in to comment.