-
-
Notifications
You must be signed in to change notification settings - Fork 298
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
Huge file size #163
Comments
Dropping MUI v3 support
and using
|
|
Yes, it is rather large: https://bundlephobia.com/result?p=notistack@0.9.6 As you can see most the size is actually the library this is where most reductions could be made. Although other areas are:
Some big wins without even reducing code size where there would be ... massive ... wins |
Another leverage I have just thought of. Instead of a custom alert component, we could explore using this one: https://material-ui.com/components/alert/. |
Agreed. Currently for a notifications stack, its pretty huge. Its about the same size as react-router. |
@andrewmclagan What other dependencies do you have in your package.json? (looking for opportunities of third-party libraries to reduce bundle size) |
Just installed notistack 0.9.11 and it adds ~50KB to my builds using |
Of course improving bundle size is an ongoing thing and there's always room for improvement, but #268 made a good step towards a smaller bundle size. |
Seems like it's even bigger than react. How can be possible?
The text was updated successfully, but these errors were encountered: