electron/lib/renderer/api/exports/electron.js

13 lines
336 B
JavaScript
Raw Normal View History

2016-03-25 19:57:17 +00:00
const common = require('../../../common/api/exports/electron')
const moduleList = require('../module-list')
2016-01-12 02:40:23 +00:00
2016-01-14 18:35:29 +00:00
// Import common modules.
2016-03-25 19:57:17 +00:00
common.defineProperties(exports)
2016-01-12 02:40:23 +00:00
for (const module of moduleList) {
Object.defineProperty(exports, module.name, {
enumerable: !module.private,
get: () => require(`../${module.file}`)
})
}