You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Importing this library into my web app is adding 3mb to the bundle size of my app. I believe this should be a bug related to how this package is bundled.
Yeah, it includes "react-syntax-highlighter" i think which is quite heavy. Maybe that is the problem? Maybe we can create a version without code highlighting?
I guess it is quite nice for people using it for llm output streaming, as oftentimes you may want to do syntax highlighting there. But then on the other side people like me are creating things like chat embeds, so the bundle size is more important.
Activity
juliushuck commentedon Aug 21, 2025
Yeah, it includes "react-syntax-highlighter" i think which is quite heavy. Maybe that is the problem? Maybe we can create a version without code highlighting?
ViktorQvarfordt commentedon Oct 9, 2025
I would love a version without react-syntax-highlighter, as it significantly increased my bundle size.
I really didn't expect this library to include syntax highlighting. It feels out of scope for a library that does animations on text.
juliushuck commentedon Oct 15, 2025
I guess it is quite nice for people using it for llm output streaming, as oftentimes you may want to do syntax highlighting there. But then on the other side people like me are creating things like chat embeds, so the bundle size is more important.