-
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
Remove unnecessary custom require function boilerplate #6514
Conversation
#14778 Bundle Size — 57.94MiB (~-0.01%).0435e46(current) vs 916e8b9 master#14776(baseline) Warning Bundle contains 70 duplicate packages – View duplicate packages Bundle metrics
|
Current #14778 |
Baseline #14776 |
|
---|---|---|
Initial JS | 40.94MiB (~-0.01% ) |
40.94MiB |
Initial CSS | 0B |
0B |
Cache Invalidation | 17.94% |
17.93% |
Chunks | 21 |
21 |
Assets | 23 |
23 |
Modules | 4148 |
4148 |
Duplicate Modules | 213 |
213 |
Duplicate Code | 27.32% |
27.32% |
Packages | 477 |
477 |
Duplicate Packages | 70 |
70 |
Bundle size by type 2 changes
2 improvements
Current #14778 |
Baseline #14776 |
|
---|---|---|
JS | 57.93MiB (~-0.01% ) |
57.93MiB |
HTML | 7.37KiB (-0.25% ) |
7.39KiB |
Bundle analysis report Branch fix/custom-require-minus-boilerp... Project dashboard
Generated by RelativeCI Documentation Report issue
…to fix/custom-require-minus-boilerplate
…to fix/custom-require-minus-boilerplate
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.
Thanks for adding the test!
## Problem In multiple places there's unnecessary boilerplate code around creating the custom `require` function. ## Fix Remove the boilerplate code, since it's only necessary where we want to inject `ComponentRendererComponent`s or or collect data in `MutableUtopiaCtxRefData` ### Details - updated snapshot tests in the property control descriptions tests, which kept the file extension of the module key in a way that wasn't consistent with the rest of the tests - added a tests that makes sure that components in `RemixScene`s can be focused (an earlier iteration of this PR broke component focusing in `RemixScene`s) **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
Problem
In multiple places there's unnecessary boilerplate code around creating the custom
require
function.Fix
Remove the boilerplate code, since it's only necessary where we want to inject
ComponentRendererComponent
s or or collect data inMutableUtopiaCtxRefData
Details
RemixScene
s can be focused (an earlier iteration of this PR broke component focusing inRemixScene
s)Manual Tests:
I hereby swear that: