fix(lib/modules/metro/utils): make turbo module check more performant
This commit is contained in:
parent
50a499f6d2
commit
24c4985ae8
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)
|
||||
(typeof exp === 'object' && 'TurboModules stink' in exp)
|
||||
(!exp.__proto__ && '\u0001' in exp)
|
||||
)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue