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