Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Make styled-components a devDependency

See original GitHub issue

We 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:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:10 (10 by maintainers)

github_iconTop GitHub Comments

montezumecommented, Sep 5, 2018

I’ll take this if nobody else is hankering for it

dferber90commented, Oct 19, 2018

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 use styled-components at all 🔥

However, we still use styled-components internally for our stories, which is fine.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found