Add "electron" module

This commit is contained in:
Cheng Zhao 2015-11-12 16:28:22 +08:00
parent ce0167756e
commit c2c09daa23
6 changed files with 84 additions and 0 deletions

View file

@ -17,6 +17,7 @@ require path.resolve(__dirname, '..', '..', 'common', 'lib', 'init')
# Electron's built-in libraries.
globalPaths = Module.globalPaths
globalPaths.push path.resolve(__dirname, '..', 'api', 'lib')
globalPaths.push path.resolve(__dirname, '..', 'api', 'lib', 'exports')
if process.platform is 'win32'
# Redirect node's console to use our own implementations, since node can not