moroshko / react-scanner

Extract React components and props usage from code.
MIT License
563 stars 40 forks source link

Add styled component `styledFrom` attribute #56

Open smol-honk opened 1 year ago

smol-honk commented 1 year ago

I added this to get a styledFrom attribute to better track what my styled components were based on. I honestly think this could be cleaned up a lot better, but it's my first time working with anything AST 😩 Wanted to put this out there for anyone else who would like to do something similar though.

smol-honk commented 1 year ago

Hoping this can sort of help #51