-
-
Notifications
You must be signed in to change notification settings - Fork 141
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
css prop not working with babel plugins: "transform-react-inline-elements", "transform-react-constant-elements" #221
Comments
+1 |
+1 |
Please upvote the original post rather than adding "+1" comments if you don't have any more information to add, thanks. |
@josebrito Could you please supply a reproduction sandbox? |
@probablyup thanks for the reply. Check this this sandbox to reproduce the issue. It will show a blank page, because the app fails to render. If you check the browser inspector you will see a You can also clone this repo and start the app with Thanks! Note: even though it is a different package, note that |
@josebrito ok I think my changes in #228 fixed this :) you can test it with |
@probablyup just tested it and seems fixed! Hoping for a new release soon. Thanks a lot! 🙌🏻🙌🏻 |
Awesome! Yeah I'm still working on that PR a bit so probably later this week 👍 |
Hi,
I'm using react-boilerplate for a project and have upgraded styled-components to v4.
For the production build I use the following babel configuration (i've only added
styled-components
, the rest is the initial configuration provided by the boilerplate):I have a component which uses the
css
prop, but even though it is working fine in development, when I run the production build the styles defined in thecss
prop are not being applied unless I removetransform-react-inline-elements
andtransform-react-constant-elements
from the babel configurations.I wasn't able to tell why it's happening, just reporting this here in case anyone has any clues. For now there's no workaround besides not using the
css
prop.Thank you!
Edit: Also confirmed here
Example:
package.json
:The text was updated successfully, but these errors were encountered: