Skip to content

Commit

Permalink
Fix compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 committed May 15, 2023
1 parent 61560fb commit 3e2b7f3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions crates/turbopack-ecmascript/src/references/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2298,6 +2298,12 @@ fn for_each_ident_in_decl(decl: &Decl, f: &mut impl FnMut(String)) {
.iter()
.for_each(|VarDeclarator { name, .. }| for_each_ident_in_pat(name, f));
}
Decl::Using(using_decl) => {
let decls = &*using_decl.decls;
decls
.iter()
.for_each(|VarDeclarator { name, .. }| for_each_ident_in_pat(name, f));
}
Decl::TsInterface(_) | Decl::TsTypeAlias(_) | Decl::TsEnum(_) | Decl::TsModule(_) => {
// ignore typescript for code generation
}
Expand Down

0 comments on commit 3e2b7f3

Please sign in to comment.