-
-
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
[docs] Extend size-snapshot #17633
[docs] Extend size-snapshot #17633
Conversation
@material-ui/core: parsed: +3.41% , gzip: +3.84% Details of bundle changes.Comparing: 6905c58...860b997
|
- task: PublishPipelineArtifact@0 | ||
inputs: | ||
artifactName: 'size-snapshot' | ||
targetPath: 'scripts/sizeSnapshot/build/stats.json' |
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.
I didn't use this for months. It takes now up to 1min extra CI time. Since they are only persisted for 30 days anyway and we can safely reproduce them (since we have a lockfile) if need be I removed it.
baecc35
to
8ebfd66
Compare
4c06c9d
to
6080e95
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.
The cost is about +1 min in the build, seem ok, I expect we can parallelize it in the future if needed.
I have noticed the following in the report:
- /core/Paper is present twice, once with 0 reported size.
- A few items have a
/core/
prefix (TextareaAutosize
,useMediaQuery
,Popper
). Is this expected?
The snapshot that was removed is the commonJS version. Tracking the bundle size for commonJS is not that interesting since they are only used on server(less) targets.
Yeah but it's not really necessary. I'll remove it. |
they are unique anyway
Do you know why the reported size of |
Probably overhead from too many chunks. I don't like it either but having individual components tracked is IMO more useful than the bundle as a whole. Nobody (should) pull this in as a whole anyway.
I tend to not trust these. Everybody uses a different bundler/config so they're a bad advertising tool to begin with. |
New comparison table sorts by absolute diff making it easier to scan for changes
Track all components in core and lab. This should make their size snapshots a bit more stable with regards to chunks (we had some issues previously when a change in one dependency caused fluctuations for every tracked asset).
Running webpack separately on every bundle instead of declaring every bundle as an entry would be the most stable solution but increases time and is less representative of the change one sees when adding a given component to their app.
Labelled as docs since we link to it from some docs sites and I want to automate that process.
Future work: