-
Notifications
You must be signed in to change notification settings - Fork 136
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
Pass all instrumented metadata into splitComponentLoaders #249
Conversation
Codecov Report
@@ Coverage Diff @@
## master #249 +/- ##
=========================================
Coverage ? 78.96%
=========================================
Files ? 13
Lines ? 271
Branches ? 58
=========================================
Hits ? 214
Misses ? 40
Partials ? 17
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #249 +/- ##
=========================================
Coverage ? 78.96%
=========================================
Files ? 13
Lines ? 271
Branches ? 58
=========================================
Hits ? 214
Misses ? 40
Partials ? 17
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #249 +/- ##
=========================================
Coverage ? 78.96%
=========================================
Files ? 13
Lines ? 271
Branches ? 58
=========================================
Hits ? 214
Misses ? 40
Partials ? 17
Continue to review full report at Codecov.
|
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.
This is a breaking change, right?
A bit hacky, but I wonder if a breaking change could be avoided by adding extra properties to the chunkIds array.
I think the hackiness is acceptable considering:
- It's not really part of our public API, we just use this in our own plugins
- Suspense will eliminate the need for all of this stuff anyways
Yes it's breaking technically, and yes we only use it in the i18n plugin. I really only made it breaking to come up with a more extensible API, but that is assuming Extra properties on the array is a bit goofy, but at the same time this is a pretty insignificant (and probably temporary) feature so I'm okay if that's the decision. |
With fusionjs/fusion-cli#769
Pass
__I18N_KEYS
from instrumented promise intosplitComponentLoaders
. The only consumer ofsplitComponentLoaders
right now isfusion-plugin-i18n
, but if the need arises in the future this is simpler to expand upon if all metadata is passed in together.