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