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

[performance] 200B win opportunity, clsx/lite #40366

Open
oliviertassinari opened this issue Dec 29, 2023 · 1 comment
Open

[performance] 200B win opportunity, clsx/lite #40366

oliviertassinari opened this issue Dec 29, 2023 · 1 comment

Comments

@oliviertassinari
Copy link
Member

oliviertassinari commented Dec 29, 2023

Summary 💡

There seems to be an opportunity to shave bundle size with https://github.com/lukeed/clsx/releases/tag/v2.1.0

The full version looks bigger by about this amount https://bundlephobia.com/package/clsx@2.1.0.

For the source, we already have https://www.npmjs.com/package/babel-plugin-optimize-clsx that rewrites everything, so maybe the solution could be executed there.

Examples 🌈

No response

Motivation 🔦

No response

@aacevski
Copy link
Contributor

aacevski commented Jan 1, 2024

Hey y'all 👋🏼 I have opened a pull request to the babel-plugin-optimize-clsx package. The tests were all passing which is a good sign, let's see what happens on that pull request - if so, hopefully we can merge this and update it on the MUI side 🚀

merceyz/babel-plugin-optimize-clsx#23

@oliviertassinari oliviertassinari removed the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Jan 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants