🐎 Minimize dependencies loaded before the module-cache

This commit is contained in:
Max Brunsfeld
2015-08-21 13:35:52 -07:00
parent 1f64676189
commit b533aff8f4
3 changed files with 14 additions and 6 deletions

View File

@@ -78,6 +78,7 @@ var setupWindow = function(loadSettings) {
});
setupVmCompatibility();
setupCsonCache(compileCache.getCacheDirectory())
require(loadSettings.bootstrapScript);
require('ipc').sendChannel('window-command', 'window:loaded');
@@ -101,6 +102,10 @@ var setupAtomHome = function() {
}
}
var setupCsonCache = function(cacheDir) {
require('season').setCacheDir(path.join(cacheDir, 'cson'));
}
var setupVmCompatibility = function() {
var vm = require('vm');
if (!vm.Script.createContext) {