diff --git a/crates/swc_estree_compat/src/babelify/class.rs b/crates/swc_estree_compat/src/babelify/class.rs index 8bf64c265ce4..6eae76869241 100644 --- a/crates/swc_estree_compat/src/babelify/class.rs +++ b/crates/swc_estree_compat/src/babelify/class.rs @@ -56,14 +56,13 @@ impl Babelify for ClassMember { ClassMember::PrivateMethod(m) => ClassBodyEl::PrivateMethod(m.babelify(ctx)), ClassMember::ClassProp(p) => ClassBodyEl::Prop(p.babelify(ctx)), ClassMember::PrivateProp(p) => ClassBodyEl::PrivateProp(p.babelify(ctx)), - ClassMember::TsIndexSignature(s) => ClassBodyEl::TSIndex(s.babelify(ctx)), - ClassMember::Empty(_) => panic!( + ClassMember::TsIndexSignature(s) => ClassBodyEl::TSIndex(s.babelify(ctx)) "illegal conversion: Cannot convert {:?} to ClassBodyEl", &self ), ClassMember::StaticBlock(s) => ClassBodyEl::StaticBlock(s.babelify(ctx)), ClassMember::AutoAccessor(..) => todo!("auto accessor"), - ClassMember::ContentTagMember(..) => todo!("content tag member"), + ClassMember::ContentTagMember(ct) => ct.babelify(ctx), } } }