Minor code update
This commit is contained in:
parent
0e745e50c9
commit
f23bcbc28b
@ -553,11 +553,8 @@ function transformClass(
|
||||
name = key.name;
|
||||
}
|
||||
|
||||
if (
|
||||
element.node.type === "ClassMethod" &&
|
||||
element.node.kind === "constructor"
|
||||
) {
|
||||
constructorPath = element as NodePath<t.ClassMethod>;
|
||||
if (element.isClassMethod({ kind: "constructor" })) {
|
||||
constructorPath = element;
|
||||
}
|
||||
|
||||
if (isComputed) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user