2025-07-05 13:12:57 +07:00
|
|
|
import { pUnscopedApi } from '@revenge-mod/plugins/_'
|
2025-06-16 09:01:45 +07:00
|
|
|
import { defineLazyProperties } from '@revenge-mod/utils/objects'
|
2025-06-06 20:48:05 +07:00
|
|
|
import type { UnscopedInitPluginApi } from '@revenge-mod/plugins/types'
|
|
|
|
|
import type { PluginApiExternals } from './types'
|
2025-06-02 15:50:29 +07:00
|
|
|
|
2025-06-16 09:01:45 +07:00
|
|
|
defineLazyProperties(
|
2025-07-05 13:12:57 +07:00
|
|
|
((pUnscopedApi as UnscopedInitPluginApi).externals =
|
|
|
|
|
{} as PluginApiExternals),
|
2025-06-16 09:01:45 +07:00
|
|
|
{
|
2025-06-16 20:20:04 +07:00
|
|
|
Browserify: () => {
|
|
|
|
|
return require('@revenge-mod/externals/browserify')
|
|
|
|
|
},
|
|
|
|
|
ReactNativeClipboard: () => {
|
|
|
|
|
return require('@revenge-mod/externals/react-native-clipboard')
|
|
|
|
|
},
|
|
|
|
|
ReactNavigation: () => {
|
|
|
|
|
return require('@revenge-mod/externals/react-navigation')
|
|
|
|
|
},
|
|
|
|
|
Shopify: () => {
|
|
|
|
|
return require('@revenge-mod/externals/shopify')
|
|
|
|
|
},
|
2025-06-16 09:01:45 +07:00
|
|
|
},
|
|
|
|
|
)
|