revenge-bundle-next/lib/externals/src/init.ts

24 lines
811 B
TypeScript
Raw Normal View History

2025-07-05 13:12:57 +07:00
import { pUnscopedApi } from '@revenge-mod/plugins/_'
import { defineLazyProperties } from '@revenge-mod/utils/objects'
import type { UnscopedInitPluginApi } from '@revenge-mod/plugins/types'
import type { PluginApiExternals } from './types'
defineLazyProperties(
2025-07-05 13:12:57 +07:00
((pUnscopedApi as UnscopedInitPluginApi).externals =
{} as PluginApiExternals),
{
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')
},
},
)