mirror of
https://github.com/facebook/react-native.git
synced 2026-11-18 20:19:07 +00:00
fbsource
Reviewed By: samwgoldman Differential Revision: D4314897 fbshipit-source-id: fbe11da4c63bf34d010220d74177cb3ca4cbee6d
This commit is contained in:
1 parent
affd5ac681
commit
d926aecd77
6 files changed
+10
-7
No files matched your search
@@ -114,6 +114,7 @@ class ModuleCache {
|
||||
getPackageForModule(module: Module): ?Package {
|
||||
if (this._packageModuleMap.has(module)) {
|
||||
const packagePath = this._packageModuleMap.get(module);
|
||||
// $FlowFixMe(>=0.37.0)
|
||||
if (this._packageCache[packagePath]) {
|
||||
return this._packageCache[packagePath];
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user