-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
[core] Compress throw new Error() to save bundle size #14618
Comments
added to the board |
@michelengelen This is not a tree view topic, it's general to X and probably more a |
Thanks for pointing that out @flaviendelangle ... moved it out of the board! |
And I suspect that Toolpad / Base UI / Pigment CSS could also benefit from this. cc @Janpot |
Base UI also has a few of those https://github.com/mui/base-ui/blob/1ab27b0510e0ba19157597f17642022a6208ae09/packages/mui-base/src/Slider/Root/SliderProvider.tsx#L21. It's not super important for MUI X, I mean, there are likely other ways to save bundle size to go after first. Top-level issue created: mui/mui-public#204. |
Summary
Today, MUI X throws errors in plain strings:
mui-x/packages/x-tree-view/src/internals/plugins/useTreeViewItems/useTreeViewItems.tsx
Lines 36 to 43 in dd4447c
those add bundle size to end-users
Examples
We should be able to encode them with a key and only bundle this. See mui/material-ui#21214 for prior art on Material UI.
Motivation
No response
Search keywords: -
The text was updated successfully, but these errors were encountered: