Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: does the babel plugin apply labels to cx? #608

Closed
LionOps opened this issue Mar 30, 2018 · 0 comments · Fixed by #609
Closed

Question: does the babel plugin apply labels to cx? #608

LionOps opened this issue Mar 30, 2018 · 0 comments · Fixed by #609

Comments

@LionOps
Copy link

LionOps commented Mar 30, 2018

  • emotion version: 9.1.0
  • react version: 16.2.0

Relevant code.

const class1 = css`
  ... // ellipsis since content css rules aren't important
`;
const class2 = css`
  ...
`;

const class3 = css`
  ...
`;

const foo = cx(class1, class2, class3);

Can I expect babel to apply the label to the resulting class name in this case?

  • Apologies for not testing this myself. My current project doesn't yet use the plugin, and the documentation isn't clear, so I thought I would ask.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant