diff --git a/src/parser.ts b/src/parser.ts index 4661a5db..66f48d41 100644 --- a/src/parser.ts +++ b/src/parser.ts @@ -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);