From a14195adc716a3952814f5810e9c46d39a339dba Mon Sep 17 00:00:00 2001 From: Jonas Date: Fri, 11 Sep 2020 14:27:40 +0200 Subject: [PATCH] Update component.js added reactDocs resolver "findAllComponentDefinitions", to fix problem with multiple exported components in single file --- component.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/component.js b/component.js index 98f6fc2..ef02f16 100644 --- a/component.js +++ b/component.js @@ -55,7 +55,7 @@ var parseReact = function (filePath, doclet) { var src = fs.readFileSync(filePath, 'UTF-8') var docGen try { - docGen = reactDocs.parse(src) + docGen = reactDocs.parse(src, reactDocs.resolver.findAllComponentDefinitions) } catch (error) { if (error.message === 'No suitable component definition found.') { return {