Skip to content

Feature request: handle styled component #51

@ethange7

Description

@ethange7

Is there anyway we can track the styled component to it's origin? See example below

import {Button} from 'design-system'
import {styled} from 'react-emotion'
...
const StyledButton = styled(Button)`
//some css here
`
const Container = () => {
    return <StyledButton>
}

in this case, I would consider StyledButton IS Button from 'design-system'
but in the generated report, I think we are only getting

{
  "StyledButton": 1
}

is there any way we can detect this type of situation?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions