remove ClassDeclaration transformation
This commit is contained in:
parent
24aa904d99
commit
bde03060a5
@ -39,12 +39,6 @@ var astTransformVisitor = {
|
||||
|
||||
// classes
|
||||
|
||||
if (t.isClassDeclaration(node)) {
|
||||
return t.variableDeclaration("let", [
|
||||
t.variableDeclarator(node.id, node)
|
||||
]);
|
||||
}
|
||||
|
||||
if (t.isClassProperty(node)) {
|
||||
// eslint doesn't like these
|
||||
this.remove();
|
||||
@ -54,7 +48,7 @@ var astTransformVisitor = {
|
||||
|
||||
if (t.isJSXIdentifier(node)) {
|
||||
if (node.name === "this" && t.isReferenced(node, parent)) {
|
||||
return t.thisExpression();
|
||||
return t.inherits(t.thisExpression(), node);
|
||||
} else {
|
||||
node.type = "Identifier";
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user