Minor code update
This commit is contained in:
parent
b86c25a800
commit
0a99902cc0
@ -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