2025-06-06 20:08:25 +07:00
|
|
|
/** biome-ignore-all lint/complexity/useArrowFunction: Rolldown issue: Bug requires us to use normal functions instead of arrow functions */
|
|
|
|
|
|
2025-06-06 20:48:05 +07:00
|
|
|
import { _uapi } from '@revenge-mod/plugins/_'
|
2025-06-02 15:50:29 +07:00
|
|
|
import { defineLazyProperty } 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-06 20:48:05 +07:00
|
|
|
const uapi = _uapi as UnscopedInitPluginApi
|
|
|
|
|
const externals = (uapi.externals = {} as PluginApiExternals)
|
2025-06-02 15:50:29 +07:00
|
|
|
|
2025-06-06 20:08:25 +07:00
|
|
|
defineLazyProperty(externals, 'Browserify', function () {
|
|
|
|
|
return require('@revenge-mod/externals/browserify')
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
defineLazyProperty(externals, 'ReactNativeClipboard', function () {
|
|
|
|
|
return require('@revenge-mod/externals/react-native-clipboard')
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
defineLazyProperty(externals, 'ReactNavigation', function () {
|
|
|
|
|
return require('@revenge-mod/externals/react-navigation')
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
defineLazyProperty(externals, 'Shopify', function () {
|
|
|
|
|
return require('@revenge-mod/externals/shopify')
|
|
|
|
|
})
|