Fix getBindingIdentifiers in babel-types (#5068)
* Added getBindingIdentifier tests * Added failing test for getBindingIdentifiers * Fix babel-types getBindingIdentifiers
This commit is contained in:
@@ -29,8 +29,8 @@ export function getBindingIdentifiers(
|
||||
}
|
||||
|
||||
if (t.isExportDeclaration(id)) {
|
||||
if (t.isDeclaration(node.declaration)) {
|
||||
search.push(node.declaration);
|
||||
if (t.isDeclaration(id.declaration)) {
|
||||
search.push(id.declaration);
|
||||
}
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user