fix(lib/modules/metro/utils): check if export is object before checking properties

This commit is contained in:
PalmDevs 2025-07-02 23:02:18 +07:00
parent 4fc6af8136
commit 50a499f6d2
No known key found for this signature in database
GPG key ID: 6FAE8F8677ACA8BA

View file

@ -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)
)
}