Comments (1)
It's likely a bug with their plugin, since with SC we're not giving the plugin any components to target. I'm not quite sure what it even does and how it works, but I'm pretty sure you won't even need it.
So for SC we have our own displayName
option.
For functions as pure functional components, the devtools are going to display the function name as the component name: function ComponentName () {...}
For arrow functions you'll have to bind them to a variable and the function will infer its function name to be the variable name: const ComponentName = () => null
And for classes it'll just display ... well ... their name.
So I'm not really sure why you'd need it, but i'd suspect that it's at fault here. Some babel output would help though, if you'd like me to help track this down ;)
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.