Comments (2)
I think, I see a problem with 3-rd party libs.
You do not usually transpile code from node-modules, so I think 3-rd party libs built with styled-components should be preprocessed with this plugin to get componentId's in place before publishing.
But in that case id's from different libs will clash. If it's an actual problem, I have one solution on my mind. Plugin could determine package name of the current project and use it in the hash.
from babel-plugin-styled-components.
Should we change it to s-137hlza if displayName is disabled?
Hmm, I guess?
But in that case id's from different libs will clash. If it's an actual problem, I have one solution on my mind. Plugin could determine package name of the current project and use it in the hash.
That's a good point, I hadn't thought of that! /cc @geelen could that be an issue?
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.