Comments (6)
Closing. I am no longer seeing this issue in 2.2.0
from babel-plugin-styled-components.
Styles aren't extracted by this plugin at all. This is a work in progress. 😉
from babel-plugin-styled-components.
The color and font-size rules are split into two different classes but only the color class is sent from the server. When the page renders styled-components correctly renders both styles.
That's still a bug I'm pretty sure?
from babel-plugin-styled-components.
@mxstbr Could be? 🤔
@romellogood Can you post your code before and after transpilation?
from babel-plugin-styled-components.
<p class="fwwwt4-0 XtIyK s1tqgosa-0 hFCZie" data-reactid="5">WELCOME TO THE HOME PAGE</p>
.XtIyK {
color: #0DA548;
}
.fwwwt4-0 {
}
.hFCZie {
font-size: 24px;
}
.s1tqgosa-0 {
}
.XtIyK {
color: #0DA548;
}
Here is the transpired code for the snippet above. This is after the client takes over and correctly adds the font-size 24px.
I beginning to think the issue may be with ServerStyleSheet generating the css on the server instead of the plugin.
from babel-plugin-styled-components.
Can you post the transpiled JS code of your example above, after it's gone through babel, so we can see if it's a problem with styled-components or our babel plugin? 😄
Cheers 😉
from babel-plugin-styled-components.
Related Issues (20)
- Incorrect styles applied bug after v1.10.5 HOT 3
- Css prop no more working with Babel macro HOT 1
- displayName not working with styled-components/macro HOT 3
- babel plugin which will change order of styled components HOT 1
- bumping the babel-plugin-styled-components to 2.0.5 make a regression in performance inside our tests HOT 6
- Performance regression in 1.12.1 HOT 4
- Better naming for styled components nested in objects.
- Doesn't identify styled components in pre-transpiled code HOT 2
- Support for styled-component v6-beta HOT 1
- Babel and corresponding core packages versions 6.25.0 and prior have already reached their end of life. HOT 2
- redundant imports cause default-export version to not be transformed HOT 1
- Npm error while installing latest version (v6.0.0-rc.6) HOT 1
- Vite + babel-plugin-styled-components throws HOT 3
- Compatibility with Million.js HOT 1
- NEED HELP: CSS Styles Not Applied with styled-components v6.0.7 and webpack v5.88.2
- Missing peerDependencies on babel-plugin-styled-components
- Support auto import
- Transform displayName in config
- replace lodash with lodash.difference
- [Bug]: babel-plugin-styled-components is ignored/not working starting Jest 27
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from babel-plugin-styled-components.