Optimize remote.require('electron')
This commit is contained in:
parent
1d1f911b09
commit
8b2942c279
4 changed files with 38 additions and 4 deletions
|
@ -1,6 +1,9 @@
|
|||
# Import common modules.
|
||||
module.exports = require '../../../../common/api/lib/exports/electron'
|
||||
|
||||
v8Util = process.atomBinding 'v8_util'
|
||||
v8Util.setHiddenValue module.exports, 'electronModule', true
|
||||
|
||||
Object.defineProperties module.exports,
|
||||
# Browser side modules, please sort with alphabet order.
|
||||
app:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue