Performance issues with STYLED-COMPONENTS and ROLLUP
May 3, 2020 at 10:29amPerformance 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.
