module-names.ts 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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. 'systemPreferences',
  32. 'TouchBar',
  33. 'Tray',
  34. 'View',
  35. 'webContents',
  36. 'WebContentsView'
  37. ];
  38. if (BUILDFLAG(ENABLE_DESKTOP_CAPTURER)) {
  39. browserModuleNames.push('desktopCapturer');
  40. }
  41. if (BUILDFLAG(ENABLE_VIEWS_API)) {
  42. browserModuleNames.push(
  43. 'ImageView'
  44. );
  45. }