brumm / tako

Tako replaces the default Github repository file list with an expandable file tree and file preview for rapid exploration of repositories.
MIT License
200 stars 12 forks source link

styled-components support #27

Open jpangelle opened 4 years ago

jpangelle commented 4 years ago

When previewing a file in the collapsible tree view, my styled-components code:

const ActionText = styled.button`
  ${props => props.theme.ActionText(props.theme)[props.variant]};
`;

displays like this:

const ActionText = styled.button`
  ___CSS_0___;
`;
brumm commented 4 years ago

Oh wow I noticed this today as well and never put it together that this was due to Tako. I'll check it out!

jpangelle commented 4 years ago

Awesome! Not sure if it is styled-components specifically cause it does seem to work with some styled-components code 🤷

brumm commented 4 years ago

This seems to have turned up in the package I'm using already https://github.com/conorhastings/react-syntax-highlighter/issues/223

I'll keep an eye on it, thanks for reporting!

jpangelle commented 4 years ago

Ah nice find. 🍻