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 {