electron/lib/sandboxed_renderer/api/exports/electron.js

17 lines
295 B
JavaScript

const moduleList = require('../module-list')
for (const {
name,
load,
enabled = true,
private: isPrivate = false
} of moduleList) {
if (!enabled) {
continue
}
Object.defineProperty(exports, name, {
enumerable: !isPrivate,
get: load
})
}