Skip to content

Commit 0035996

Browse files
author
Zvonimir Sabljic
committed
Fix so that we can process the case 'export function add(a) {...}' correctly
1 parent 9f329a5 commit 0035996

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/code.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ function processAst(ast, cb) {
264264
} else if (path.isExportNamedDeclaration()) {
265265
if (path.node.declaration) {
266266
if (path.node.declaration.type === 'FunctionDeclaration') {
267-
return cb(path.node.declaration.id.name, null, 'exportFn');
267+
return cb(path.node.declaration.id.name, null, 'exportFnDef');
268268
} else if (path.node.declaration.type === 'VariableDeclaration') {
269269
path.node.declaration.declarations.forEach(declaration => {
270270
return cb(declaration.id.name, null, 'exportFn');

0 commit comments

Comments
 (0)