2019-07-01 23:00:17 +00:00
|
|
|
'use strict';
|
|
|
|
const common = require('@electron/internal/common/api/exports/electron');
|
2019-06-16 20:19:06 +00:00
|
|
|
// since browser module list is also used in renderer, keep it separate.
|
2019-07-01 23:00:17 +00:00
|
|
|
const moduleList = require('@electron/internal/browser/api/module-list');
|
2019-06-16 20:19:06 +00:00
|
|
|
// Import common modules.
|
2019-07-01 23:00:17 +00:00
|
|
|
common.defineProperties(exports);
|
2019-06-16 20:19:06 +00:00
|
|
|
for (const module of moduleList) {
|
2019-07-01 23:00:17 +00:00
|
|
|
Object.defineProperty(exports, module.name, {
|
|
|
|
enumerable: !module.private,
|
|
|
|
get: common.memoizedGetter(() => {
|
|
|
|
const value = require(`@electron/internal/browser/api/${module.file}.js`);
|
|
|
|
// Handle Typescript modules with an "export default X" statement
|
|
|
|
if (value.__esModule)
|
|
|
|
return value.default;
|
|
|
|
return value;
|
|
|
|
})
|
|
|
|
});
|
2019-06-16 20:19:06 +00:00
|
|
|
}
|
2019-07-01 23:00:17 +00:00
|
|
|
//# sourceMappingURL=electron.js.map
|