mirror of
https://github.com/status-im/metro.git
synced 2025-02-21 23:38:12 +00:00
Summary: It's possible that a mock doesn't have an associated real module that it maps to. This is actually very common in www, where we have JS mocks for dynamic PHP JS modules. The implementation I chose seems like the smartest one for now: if a module cannot be resolved, we look up whether we have a mock with the same id. If we do, we just resolve it. That's it! And it also only does the minimum amount of resolution necessary. public Reviewed By: martinbigio Differential Revision: D2822277 fb-gh-sync-id: 7c9fbb6f69a0c0c85157c0650f5719d94a02410e