Make styled-components a devDependency
See original GitHub issueWe are currently only using the keyframes
feature of styled-components
, and only for a single component. It doesn’t make much sense to bundle all of styled-components
for this.
We should make styled-components
a devDependency
and restrict its usage to stories of storybook!
Issue Analytics
- State:
- Created 5 years ago
- Reactions:2
- Comments:10 (10 by maintainers)
Top Results From Across the Web
FAQs - styled-components
As the beta progresses, we will try to release codemods to make the items below ... Moving styled-components to devDependencies will guarantee that...
Read more >styled-components - npm
Start using styled-components in your project by running `npm i styled-components`. There are 19802 other projects in the npm registry using ...
Read more >How to serve a React component library dependent on Styled ...
That component library has Styled Components listed as a peerDep and a devDep in the package.json. From there I'm importing Styled Comopnents ...
Read more >Using styled-components in TypeScript: A tutorial with examples
We need to install some dependencies because styled-components doesn't come with create-react-app. Run the following command:
Read more >How To Use React Styled Components Efficiently - Copycat
Using styled-components makes it simple to use actual CSS to style ... install styled-components with types as a dev dependency like below; ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’ll take this if nobody else is hankering for it
I opened #179 now which gets rid of
styled-components
as a peer dependencies. This means the bundle size will stay small and consumers won’t need to usestyled-components
at all 🔥However, we still use
styled-components
internally for our stories, which is fine.