🐛 Add all chunks from stats object#20
Conversation
|
Hi @themgoncalves, any thoughts about this PR? |
|
Hi @lex111, Thanks for your contribution, I will be debugging the code and making sure that we got it all covered, but for that, I need to have more infos so I can a test environment for that. Do you mind to share a code demo that runs the issue you reported? |
|
We use your lib in Docusaurus, you probably remember this project. Reproducible demo you can find here https://github.com/facebook/docusaurus/tree/repro-2244/website-build-fail When you try to build that site by running the This happens when the user overrides the I don’t understand why this is happening, I just found out that it is due to |
|
Yes, this is enough information. I’ll be getting back to this topic tomorrow. Thanks for sharing such detailed infos. |
themgoncalves
left a comment
There was a problem hiding this comment.
Code wise and functionality looks good.
Couldn't find any possible issues that this PR could introduce, so we're good to go.
|
@themgoncalves thank you! Although I do not understand why and how more elements can appear in |
|
@lex111 As precaution measure I just release another patch with a few packages downgrade, as it was showing flaky behaviour which concerns me. |
|
@themgoncalves I got you, so I will use v0.2.2 then. |
Summary
In my project, I encountered an error (see below), in the end I found out that not all chunks are added to manifest, I tried to fix it.
Why
In my code, I ran into a problem when the chunk is used, but was not defined in the assets property, which is why I got the following error (from getBundles).
As a rule,
chunk.idscontains only one element - this ischunk.id, but there are cases when there may be several ids, and it seems to me that we should take this fact into account.@themgoncalves honestly, I don’t know for sure if this solution is right, but it solved my problem. I would be grateful if you could help me improve this change.
Checklist
errorsorwarningsapproved terminologyunit tests, if apply.