Add comment about Module path
This commit is contained in:
parent
5e2f36387f
commit
a4f94b89b4
1 changed files with 2 additions and 0 deletions
|
@ -36,6 +36,8 @@ Module._nodeModulePaths = function (from) {
|
|||
return paths
|
||||
}
|
||||
|
||||
// Patch Module._resolveFilename to always require the Electron API when
|
||||
// require('electron') is done.
|
||||
const electronPath = path.join(__dirname, '..', process.type, 'api', 'exports', 'electron.js')
|
||||
const originalResolveFilename = Module._resolveFilename
|
||||
Module._resolveFilename = function (request, parent, isMain) {
|
||||
|
|
Loading…
Reference in a new issue