Skip to content

Reduce PF chatbot dependency size #878

Description

@patternfly-jira-sync

Goal is to reduce the PF chatbot dependency size (current target: mitigate the 1.2 MB overhead).

We want to first pull it into a test project with webpack or vite so we can check the current bundle size and then have a baseline to compare against.

We can try a few things to begin with:

  1. Use direct dynamic imports for icons
  2. Use React.lazy and Suspense for imports
  3. See if there are lighter weight versions of syntax highlighter and other deps we can use, or whether we can offload them to the consumer like we did with Monaco

Jira Issue: PF-4436

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    Status
    Needs triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions