electron.js 336 B

12345678910111213
  1. const common = require('../../../common/api/exports/electron')
  2. const moduleList = require('../module-list')
  3. // Import common modules.
  4. common.defineProperties(exports)
  5. for (const module of moduleList) {
  6. Object.defineProperty(exports, module.name, {
  7. enumerable: !module.private,
  8. get: () => require(`../${module.file}`)
  9. })
  10. }