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

23 lines
789 B
TypeScript
Raw Normal View History

import { _uapi } 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(
((_uapi 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')
},
},
)