mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-09-20 07:28:08 +03:00
Merge pull request #14116 from atom/as-main-module-path-variable
Assign `Package.prototype.mainModulePath` eagerly for preloaded packages
This commit is contained in:
commit
d9ebd7e125
@ -102,6 +102,10 @@ class Package
|
||||
@path = path.join(@packageManager.resourcePath, @path)
|
||||
@loadStylesheets()
|
||||
|
||||
# Unfortunately some packages are accessing `@mainModulePath`, so we need
|
||||
# to compute that variable eagerly also for preloaded packages.
|
||||
@getMainModulePath()
|
||||
|
||||
load: ->
|
||||
@measure 'loadTime', =>
|
||||
try
|
||||
|
Loading…
Reference in New Issue
Block a user