Workaround for metro monorepo asset issues #5551
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Currently in the playground/E2E app some of the images on the RNTester image page, and within the logbox experience do not show up when debugging. This is due to an issue with metro not able to handle assets that are located outside of the app's package folder, which is often the case in monorepos.
This change applies a workaround that the community uses for this case, which fixes this images within our repo. Hopefully this is something we can look into fixing in metro in the future.
See facebook/metro#290 (comment)
Microsoft Reviewers: Open in CodeFlow