mirror of
https://github.com/atom/atom.git
synced 2026-01-20 20:38:09 -05:00
Load module cache in index.js
This commit is contained in:
committed by
Kevin Sawicki
parent
87d2026e63
commit
0a297d7642
@@ -1,10 +1,6 @@
|
||||
# Like sands through the hourglass, so are the days of our lives.
|
||||
startTime = Date.now()
|
||||
|
||||
ModuleCache = require('./module-cache')
|
||||
ModuleCache.add(JSON.parse(decodeURIComponent(location.search.substr(14))).resourcePath)
|
||||
ModuleCache.register()
|
||||
|
||||
require './window'
|
||||
|
||||
Atom = require './atom'
|
||||
|
||||
@@ -17,6 +17,11 @@ window.onload = function() {
|
||||
require('vm-compatibility-layer');
|
||||
require('coffee-script').register();
|
||||
require(path.resolve(__dirname, '..', 'src', 'coffee-cache')).register();
|
||||
|
||||
ModuleCache = require('./module-cache');
|
||||
ModuleCache.add(loadSettings.resourcePath);
|
||||
ModuleCache.register();
|
||||
|
||||
require(loadSettings.bootstrapScript);
|
||||
ipc.sendChannel('window-command', 'window:loaded')
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user