2018-09-20 03:43:26 +00:00
|
|
|
const common = require('@electron/internal/common/api/exports/electron')
|
2017-03-06 14:58:10 +00:00
|
|
|
// since browser module list is also used in renderer, keep it separate.
|
2018-09-20 03:43:26 +00:00
|
|
|
const moduleList = require('@electron/internal/browser/api/module-list')
|
2016-01-12 02:40:23 +00:00
|
|
|
|
2016-01-14 18:35:29 +00:00
|
|
|
// Import common modules.
|
2016-03-24 20:15:04 +00:00
|
|
|
common.defineProperties(exports)
|
2016-01-12 02:40:23 +00:00
|
|
|
|
2017-03-06 14:58:10 +00:00
|
|
|
for (const module of moduleList) {
|
|
|
|
Object.defineProperty(exports, module.name, {
|
|
|
|
enumerable: !module.private,
|
2018-09-20 03:43:26 +00:00
|
|
|
get: common.memoizedGetter(() => require(`@electron/internal/browser/api/${module.file}.js`))
|
2017-03-06 14:58:10 +00:00
|
|
|
})
|
|
|
|
}
|