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

Babel plugin for displayName to display properly in react dev tools #25

Open
kof opened this issue May 22, 2017 · 3 comments
Open

Babel plugin for displayName to display properly in react dev tools #25

kof opened this issue May 22, 2017 · 3 comments

Comments

@kof
Copy link
Member

kof commented May 22, 2017

There is one for glamorous https://www.npmjs.com/package/babel-plugin-glamorous-displayname

I think we should create a new one and make it configurable.

@lttb
Copy link
Member

lttb commented May 22, 2017

I think that we can add this feature to babel-plugin-styled-jss, so as not to produce a lot of babel-plugins for styled-jss for base needs.
I see babel-plugin-styled-jss as a set of configurable tools and helpers for styled-jss provided by babel (displayName, syntax sugar like template strings, sourcemaps etc.).

Maybe we can make one like babel-plugin-styled and support other libs, but I can't say for sure yet

@kof
Copy link
Member Author

kof commented May 22, 2017

you still have to maintain some code for this, would be better to have a configurable one, because its easy and the for e.g. use it inside of your babel-plugin-styled.

@kof
Copy link
Member Author

kof commented May 24, 2017

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

No branches or pull requests

2 participants