-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
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
[Popper] Save 7 KB gzipped (for people only using it) #13804
[Popper] Save 7 KB gzipped (for people only using it) #13804
Conversation
bbb7510
to
f4dbbdc
Compare
.size-limit.js
Outdated
name: 'The size of the @material-ui/core/Popper component', | ||
webpack: true, | ||
path: 'packages/material-ui/build/Popper/index.js', | ||
limit: '16.0 KB', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The withTheme
import for RTL support costs us 7 kB gzipped. Maybe we should look in the body dir attribute instead? cc @eps1lon?
f4dbbdc
to
860a44e
Compare
860a44e
to
8d31485
Compare
name: 'The size of the @material-ui/core/Popper component', | ||
webpack: true, | ||
path: 'packages/material-ui/build/Popper/index.js', | ||
limit: '10.0 KB', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
popper.js alone costs 7 kB: https://bundlephobia.com/result?p=popper.js.
8d31485
to
af2111d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some issues:
- does not detect direction changes
- reads from the DOM during render phase
- [core] Improve tree-shakeability #13391 is a candidate for reduced bundle size for Popper only usage since it will remove
withStyles
from the bundle
|
No description provided.