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
48 lines
1.1 KiB
TypeScript
48 lines
1.1 KiB
TypeScript
// TODO: Figure out a way to not duplicate this information between here and module-list
|
|
// It is currently duplicated as module-list "require"s all the browser API file and the
|
|
// remote module in the renderer process depends on that file. As a result webpack
|
|
// includes all the browser API files in the renderer process as well and we want to avoid that
|
|
|
|
// Browser side modules, please sort alphabetically.
|
|
export const browserModuleNames = [
|
|
'app',
|
|
'autoUpdater',
|
|
'BaseWindow',
|
|
'BrowserView',
|
|
'BrowserWindow',
|
|
'contentTracing',
|
|
'crashReporter',
|
|
'dialog',
|
|
'globalShortcut',
|
|
'ipcMain',
|
|
'inAppPurchase',
|
|
'Menu',
|
|
'MenuItem',
|
|
'nativeImage',
|
|
'nativeTheme',
|
|
'net',
|
|
'netLog',
|
|
'MessageChannelMain',
|
|
'Notification',
|
|
'powerMonitor',
|
|
'powerSaveBlocker',
|
|
'protocol',
|
|
'screen',
|
|
'session',
|
|
'systemPreferences',
|
|
'TouchBar',
|
|
'Tray',
|
|
'View',
|
|
'webContents',
|
|
'WebContentsView'
|
|
];
|
|
|
|
if (BUILDFLAG(ENABLE_DESKTOP_CAPTURER)) {
|
|
browserModuleNames.push('desktopCapturer');
|
|
}
|
|
|
|
if (BUILDFLAG(ENABLE_VIEWS_API)) {
|
|
browserModuleNames.push(
|
|
'ImageView'
|
|
);
|
|
}
|