Skip to content

Commit

Permalink
fix exportName for functional components
Browse files Browse the repository at this point in the history
  • Loading branch information
BeroBurny authored and pvasek committed Nov 15, 2018
1 parent 87cb562 commit 34d5448
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -826,6 +826,9 @@ function computeComponentName(exp: ts.Symbol, source: ts.SourceFile) {
if (
exportName === 'default' ||
exportName === '__function' ||
exportName === 'Stateless' ||
exportName === 'StyledComponentClass' ||
exportName === 'FunctionComponent' ||
exportName === 'StatelessComponent'
) {
return getDefaultExportForFile(source);
Expand Down

0 comments on commit 34d5448

Please sign in to comment.