Skip to content

Commit

Permalink
fixup dynamic import
Browse files Browse the repository at this point in the history
  • Loading branch information
sokra committed Nov 21, 2023
1 parent 3b02956 commit 5cd8711
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/turbopack-ecmascript/src/references/esm/dynamic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,8 @@ impl CodeGenerateable for EsmAsyncAssetReference {
];
})
}
PatternMapping::OriginalReferenceTypeExternal(_) => {
PatternMapping::OriginalReferenceTypeExternal(_)
| PatternMapping::OriginalReferenceExternal => {
create_visitor!(exact path, visit_mut_call_expr(call_expr: &mut CallExpr) {
let old_args = std::mem::take(&mut call_expr.args);
let expr = match old_args.into_iter().next() {
Expand Down

0 comments on commit 5cd8711

Please sign in to comment.