You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 17, 2023. It is now read-only.
This is easy for apps with custom webpack configs, but if you're using create-react-app (some projects in the company do), there's no official way to do it.
babel-plugin-macros were proposed in create-react-app back in July 2017 and are going to land in stable sometime in the near future (Merged PR: facebook/create-react-app#3675)
styled-components folks already have a working plugin-macro that would work
siddharthkp
changed the title
Add babel-plugin-styled-components after babel-plugin-macros land in create-react-app
Better debugging of classnames
Aug 7, 2018
TL;DR: We'll be able to add better debugging for developers without having to eject from create-react-app
I really miss not having
displayNames
in the class to make the dev experience better. (Ref: https://www.styled-components.com/docs/tooling#better-debugging)This is easy for apps with custom webpack configs, but if you're using create-react-app (some projects in the company do), there's no official way to do it.
react-app-rewired is one approach but it requires some configuration work from the developers, which I'm not a fan of (sample implementation)
Until now!
babel-plugin-macros
were proposed increate-react-app
back in July 2017 and are going to land in stable sometime in the near future (Merged PR: facebook/create-react-app#3675)styled-components folks already have a working plugin-macro that would work
Here's a blog post about plugin-macros for the curious: https://babeljs.io/blog/2017/09/11/zero-config-with-babel-macros
The text was updated successfully, but these errors were encountered: