fix(lib/modules/metro/utils): check if export is object before checking properties
This commit is contained in:
parent
4fc6af8136
commit
50a499f6d2
1 changed files with 1 additions and 1 deletions
|
|
@ -65,7 +65,7 @@ export function isModuleExportBad(
|
|||
// Is it a proxy? (discord-intl has proxy exports)
|
||||
isProxy(exp) ||
|
||||
// Does it have some non-existent key? (Turbo modules)
|
||||
'TurboModules stink' in exp
|
||||
(typeof exp === 'object' && 'TurboModules stink' in exp)
|
||||
)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue