-
Notifications
You must be signed in to change notification settings - Fork 7
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
Convert clsx import to clsx/lite #22
Comments
+1 here. I meant to link to this plugin in the tweet but forgot to 🤦♂️ this plugin is a perfect match & furthers why clsx/lite was good to have |
Altho the way (I think) this plugin works, “clsx/lite” just needs to be defined in options.libraries — either the users or default options |
The plugin could only do that when it knows the value is a string but when it knows that it just removes the function call: In the example from the |
true, altho 99% safe bet is string |
See for why https://twitter.com/lukeed05/status/1740841680364773646
It would help reduce the bundle size on Material UI's side: mui/material-ui#40366.
cc @lukeed
The text was updated successfully, but these errors were encountered: