split up function declarations from their exports - fixes #609
This commit is contained in:
@@ -16,6 +16,10 @@ exports.ExportDeclaration = function (node, parent, scope) {
|
||||
]);
|
||||
node.declaration = temp;
|
||||
return [declar, node];
|
||||
} else if (t.isFunctionDeclaration(declar)) {
|
||||
node._blockHoist = 2;
|
||||
node.declaration = declar.id;
|
||||
return [declar, node];
|
||||
}
|
||||
} else {
|
||||
if (t.isFunctionDeclaration(declar)) {
|
||||
|
||||
Reference in New Issue
Block a user