module-names.ts 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. // TODO: Figure out a way to not duplicate this information between here and module-list
  2. // It is currently duplicated as module-list "require"s all the browser API file and the
  3. // remote module in the renderer process depends on that file. As a result webpack
  4. // includes all the browser API files in the renderer process as well and we want to avoid that
  5. // Browser side modules, please sort alphabetically.
  6. export const browserModuleNames = [
  7. 'app',
  8. 'autoUpdater',
  9. 'BaseWindow',
  10. 'BrowserView',
  11. 'BrowserWindow',
  12. 'contentTracing',
  13. 'crashReporter',
  14. 'dialog',
  15. 'globalShortcut',
  16. 'ipcMain',
  17. 'inAppPurchase',
  18. 'Menu',
  19. 'MenuItem',
  20. 'nativeImage',
  21. 'nativeTheme',
  22. 'net',
  23. 'netLog',
  24. 'MessageChannelMain',
  25. 'Notification',
  26. 'powerMonitor',
  27. 'powerSaveBlocker',
  28. 'protocol',
  29. 'screen',
  30. 'session',
  31. 'ShareMenu',
  32. 'systemPreferences',
  33. 'TouchBar',
  34. 'Tray',
  35. 'View',
  36. 'webContents',
  37. 'WebContentsView',
  38. 'webFrameMain'
  39. ];
  40. if (BUILDFLAG(ENABLE_DESKTOP_CAPTURER)) {
  41. browserModuleNames.push('desktopCapturer');
  42. }
  43. if (BUILDFLAG(ENABLE_VIEWS_API)) {
  44. browserModuleNames.push(
  45. 'ImageView'
  46. );
  47. }