Skip to content

Commit

Permalink
export *
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 committed Jun 18, 2024
1 parent 2304e90 commit 4d3d93c
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion crates/turbopack-ecmascript/src/tree_shake/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -335,8 +335,15 @@ async fn get_part_id(result: &SplitResult, part: Vc<ModulePart>) -> Result<u32>
};

let part_id = match entrypoints.get(&key) {
Some(id) => *id,
Some(&id) => id,
None => {
// This is required to handle `export * from 'foo'`
if let ModulePart::Export(..) = &*part {
if let Some(&v) = entrypoints.get(&key) {
return Ok(v);
}
}

let mut dump = String::new();

for (idx, m) in modules.iter().enumerate() {
Expand Down

0 comments on commit 4d3d93c

Please sign in to comment.