beaf60de0a
* initial commit, mac implementation * add documentation * convert createThumbnailFromPath to async function * windows impl protoype * add tests * added test * fix * fix test * clean up * update docs * cleaning up code * fix test * retrigger CI * retrigger CI * refactor from app to native_image * windows build * lint * lint * add smart pointers, fix test * change tests and update docs * fix test, remove nolint * add renderer-main process routing to fix tests * lint * thanks sam * thanks sam
26 lines
995 B
TypeScript
26 lines
995 B
TypeScript
const v8Util = process._linkedBinding('electron_common_v8_util');
|
|
|
|
const enableRemoteModule = v8Util.getHiddenValue<boolean>(global, 'enableRemoteModule');
|
|
|
|
// Renderer side modules, please sort alphabetically.
|
|
export const rendererModuleList: ElectronInternal.ModuleEntry[] = [
|
|
{ name: 'contextBridge', loader: () => require('./context-bridge') },
|
|
{ name: 'crashReporter', loader: () => require('./crash-reporter') },
|
|
{ name: 'ipcRenderer', loader: () => require('./ipc-renderer') },
|
|
{ name: 'nativeImage', loader: () => require('./native-image') },
|
|
{ name: 'webFrame', loader: () => require('./web-frame') }
|
|
];
|
|
|
|
if (BUILDFLAG(ENABLE_DESKTOP_CAPTURER)) {
|
|
rendererModuleList.push({
|
|
name: 'desktopCapturer',
|
|
loader: () => require('@electron/internal/renderer/api/desktop-capturer')
|
|
});
|
|
}
|
|
|
|
if (BUILDFLAG(ENABLE_REMOTE_MODULE) && enableRemoteModule) {
|
|
rendererModuleList.push({
|
|
name: 'remote',
|
|
loader: () => require('@electron/internal/renderer/api/remote')
|
|
});
|
|
}
|