Remove incorrect function/class check.
This commit is contained in:
parent
0be2f1cf48
commit
61e3b1d314
@ -54,7 +54,7 @@ function ExportDeclaration(node: Object) {
|
||||
if (node.declaration) {
|
||||
let declar = node.declaration;
|
||||
this.print(declar, node);
|
||||
if (!(t.isStatement(declar) || t.isFunction(declar) || t.isClass(declar))) this.semicolon();
|
||||
if (!t.isStatement(declar)) this.semicolon();
|
||||
} else {
|
||||
if (node.exportKind === "type") {
|
||||
this.push("type ");
|
||||
|
||||
@ -17,4 +17,4 @@ export default (param => {
|
||||
prop1: 'prop1',
|
||||
prop2: 'prop2'
|
||||
}, _temp;
|
||||
})
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user