-
Notifications
You must be signed in to change notification settings - Fork 170
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
Clean up unused commands #6570
Clean up unused commands #6570
Conversation
#14887 Bundle Size — 57.97MiB (-0.01%).d3e8ee8(current) vs 916e8b9 master#14883(baseline) Warning Bundle contains 70 duplicate packages – View duplicate packages Bundle metrics
|
Current #14887 |
Baseline #14883 |
|
---|---|---|
Initial JS | 40.96MiB (-0.01% ) |
40.96MiB |
Initial CSS | 0B |
0B |
Cache Invalidation | 17.99% |
17.88% |
Chunks | 20 |
20 |
Assets | 22 |
22 |
Modules | 4152 (-0.02% ) |
4153 |
Duplicate Modules | 213 |
213 |
Duplicate Code | 27.34% (+0.04% ) |
27.33% |
Packages | 477 |
477 |
Duplicate Packages | 70 |
70 |
Bundle size by type 2 changes
2 improvements
Current #14887 |
Baseline #14883 |
|
---|---|---|
JS | 57.96MiB (-0.01% ) |
57.97MiB |
HTML | 7.37KiB (-0.25% ) |
7.39KiB |
Bundle analysis report Branch chore/command-cleanup Project dashboard
Generated by RelativeCI Documentation Report issue
case 'CONVERT_CSS_PERCENT_TO_PX': | ||
case 'CONVERT_TO_ABSOLUTE': |
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.
is this deliberate?
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.
nice!
## Problems - `AdjustNumberProperty` and `UpdatePropIfExists` command aren't used - `deleteValuesAtPath` and `applyValuesAtPath` are defined in command runners, but are actually widely used helpers ## Fix - Delete `AdjustNumberProperty` and `UpdatePropIfExists` - Move `deleteValuesAtPath` and `applyValuesAtPath` into a dedicated utils file **Manual Tests:** I hereby swear that: - [x] I opened a hydrogen project and it loaded - [x] I could navigate to various routes in Play mode --------- Co-authored-by: Balazs Bajorics <2226774+balazsbajorics@users.noreply.github.com>
Problems
AdjustNumberProperty
andUpdatePropIfExists
command aren't useddeleteValuesAtPath
andapplyValuesAtPath
are defined in command runners, but are actually widely used helpersFix
AdjustNumberProperty
andUpdatePropIfExists
deleteValuesAtPath
andapplyValuesAtPath
into a dedicated utils fileManual Tests:
I hereby swear that: