Skip to content

Bundle size #25

Open
Open

Description

@focux

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.

Repro:
https://bundlejs.com/?q=flowtoken%401.0.40

Activity

  1. juliushuck commented on Aug 21, 2025

    @juliushuck

    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?

  2. ViktorQvarfordt commented on Oct 9, 2025

    @ViktorQvarfordt

    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.

  3. juliushuck commented on Oct 15, 2025

    @juliushuck

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions