Prime require cache with atom exports

This commit is contained in:
Kevin Sawicki
2013-09-22 15:31:59 -07:00
parent 26811e62bb
commit 461a271526

View File

@@ -60,6 +60,10 @@ window.atom =
_.values(@activePackages)
loadPackages: ->
# Ensure atom exports is already in the require cache so the load time
# of the first package isn't impacted by being the first to require atom
require '../exports/atom'
@loadPackage(name) for name in @getAvailablePackageNames() when not @isPackageDisabled(name)
@watchThemes()