Use the snapshot result to require core modules

This commit is contained in:
Antonio Scandurra
2016-11-11 16:39:58 +01:00
parent 6ccdc421cb
commit 77b8089e3a
7 changed files with 70 additions and 120 deletions

View File

@@ -1,3 +1,7 @@
if (typeof snapshotResult !== 'undefined') {
snapshotResult.setGlobals(global, process, {}, require)
}
const startTime = Date.now()
const electron = require('electron')