Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@headlessui/react v1.5.0 has broken tree-shaking #1299

Closed
vikuscz opened this issue Apr 2, 2022 · 1 comment
Closed

@headlessui/react v1.5.0 has broken tree-shaking #1299

vikuscz opened this issue Apr 2, 2022 · 1 comment

Comments

@vikuscz
Copy link

vikuscz commented Apr 2, 2022

What package within Headless UI are you using?

@headlessui/react

What version of that package are you using?

v1.5.0

Describe your issue

With v1.5.0 tree-shaking seems broken. I encounter that in some larger project with nextjs, so I tried reproduce it with minimal setup with just vite, react, typescript and one Listbox component from examples in your website, and it has same behaviour. With v1.4.3 it is ok, but with v1.5.0 it bundles whole @headlessui/react which is obvious from bundle analyzer printscreens below. Is this bug or intended behaviour for this new release?

v1.4.3

v1 4 3

v1.5.0

v1 5 0

@adamwathan
Copy link
Member

Duplicate of #1238

@adamwathan adamwathan marked this as a duplicate of #1238 Apr 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants