diff --git a/src/package.coffee b/src/package.coffee index f1725d75f..a9d512678 100644 --- a/src/package.coffee +++ b/src/package.coffee @@ -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