mirror of
https://github.com/atom/atom.git
synced 2026-01-23 13:58:08 -05:00
Prime require cache with atom exports
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user