decouple arrow functions from function exprs
This commit is contained in:
parent
c889ef4058
commit
4aaaeb9ccf
@ -182,7 +182,12 @@ export function FunctionExpression(node: Object, parent: Object): boolean {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
return ArrowFunctionExpression(node, parent);
|
// export default (function () {});
|
||||||
|
if (t.isExportDeclaration(parent)) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
return UnaryLike(node, parent);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ArrowFunctionExpression(node: Object, parent: Object): boolean {
|
export function ArrowFunctionExpression(node: Object, parent: Object): boolean {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user