mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
🐎 Minimize dependencies loaded before the module-cache
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user