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
I am building a component library for Next.js, using bunchee to compile but when using only one component out of many in the consumer app, my whole library is included in the built app bundle size. Looking at the build file that bunchee generates for the component library, code is split into many smaller files, I am using "use client" directive somewhere and those components are separate files too.
Maybe I am missing something. It would be good to note what is needed for tree shaking in the docs as I am unable to find more info on this topic.
The text was updated successfully, but these errors were encountered:
I am building a component library for Next.js, using bunchee to compile but when using only one component out of many in the consumer app, my whole library is included in the built app bundle size. Looking at the build file that bunchee generates for the component library, code is split into many smaller files, I am using "use client" directive somewhere and those components are separate files too.
Maybe I am missing something. It would be good to note what is needed for tree shaking in the docs as I am unable to find more info on this topic.
The text was updated successfully, but these errors were encountered: