menu
announcement

Spectrum is now read-only. Learn more about the decision in our official announcement.

styled-components

Visual primitives for the component age. Use the best bits of ES6 and CSS to style your apps without stress!

Channels
Team

Performance issues with STYLED-COMPONENTS and ROLLUP

May 3, 2020 at 10:29am

Performance issues with STYLED-COMPONENTS and ROLLUP

May 3, 2020 at 10:29am (Edited 2 years ago)
Hi everybody, I'm new of styled components and I'm developing a components library with Rollup, Styled Components (5.1) and Rect ^16. I'm testing it with Storybook and everything is ok if I test it inside the library. However, if I compile lib and install it inside a react app, I noticed that styles.div loading is very very slow. I checked it with React Dev Tools Profiler. I really don't understand what happened. Maybe there is something wrong inside my rollup.config.js? Someone had similar issues? Thanks a lot.
Schermata 2020-05-02 alle 20.33.37.png

May 3, 2020 at 4:38pm
Can you reproduce the issue in a codesandbox or a similar service?

August 18, 2021 at 12:29pm
I have a very similar issue.. see here please

Performance issues with styled components

message-simple
2