flowbite-react icon indicating copy to clipboard operation
flowbite-react copied to clipboard

Performance pitfall - imports not tree shaken

Open timthedev07 opened this issue 6 months ago • 7 comments

  • [x] I have searched the Issues to see if this bug has already been reported
  • [x] I have tested the latest version

Steps to reproduce

  1. Import a single component from any page in Next.js
  2. Use the Next.js bundle analyzer to open up the tree diagram
  3. Find the page used in step 1 and look for Flowbite react

Current behavior

All components are imported.

Expected behavior

Only the desired component should show up.

Context

截屏2023-12-23 01 41 58

timthedev07 avatar Dec 23 '23 00:12 timthedev07