2019-08-23 09:18:58 +00:00
|
|
|
export const moduleList: ElectronInternal.ModuleEntry[] = [
|
2019-10-18 19:57:09 +00:00
|
|
|
{
|
|
|
|
name: 'contextBridge',
|
|
|
|
loader: () => require('@electron/internal/renderer/api/context-bridge')
|
|
|
|
},
|
2019-08-23 09:18:58 +00:00
|
|
|
{
|
|
|
|
name: 'crashReporter',
|
|
|
|
loader: () => require('@electron/internal/renderer/api/crash-reporter')
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'ipcRenderer',
|
|
|
|
loader: () => require('@electron/internal/renderer/api/ipc-renderer')
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'nativeImage',
|
2020-08-24 16:36:13 +00:00
|
|
|
loader: () => require('@electron/internal/renderer/api/native-image')
|
2019-08-23 09:18:58 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'webFrame',
|
|
|
|
loader: () => require('@electron/internal/renderer/api/web-frame')
|
|
|
|
},
|
|
|
|
// The internal modules, invisible unless you know their names.
|
|
|
|
{
|
|
|
|
name: 'deprecate',
|
|
|
|
loader: () => require('@electron/internal/common/api/deprecate'),
|
|
|
|
private: true
|
|
|
|
}
|
2020-03-20 20:28:31 +00:00
|
|
|
];
|
2019-08-23 09:18:58 +00:00
|
|
|
|
2020-05-10 23:06:07 +00:00
|
|
|
if (BUILDFLAG(ENABLE_DESKTOP_CAPTURER)) {
|
2019-08-23 09:18:58 +00:00
|
|
|
moduleList.push({
|
|
|
|
name: 'desktopCapturer',
|
|
|
|
loader: () => require('@electron/internal/renderer/api/desktop-capturer')
|
2020-03-20 20:28:31 +00:00
|
|
|
});
|
2019-08-23 09:18:58 +00:00
|
|
|
}
|