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:
- Use direct dynamic imports for icons
- Use React.lazy and Suspense for imports
- 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
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:
Jira Issue: PF-4436