File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
packages/@vuepress/core/lib/node Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -56,17 +56,17 @@ module.exports = class App {
5656 /**
5757 * Resolve user config and initialize.
5858 *
59- * @returns {void }
59+ * @returns {Promise< void> }
6060 * @api private
6161 */
6262
63- resolveConfigAndInitialize ( ) {
63+ async resolveConfigAndInitialize ( ) {
6464 if ( this . options . siteConfig ) {
6565 this . siteConfig = this . options . siteConfig
6666 } else {
6767 let siteConfig = loadConfig ( this . vuepressDir )
6868 if ( isFunction ( siteConfig ) ) {
69- siteConfig = siteConfig ( this )
69+ siteConfig = await siteConfig ( this )
7070 }
7171 this . siteConfig = siteConfig
7272 }
@@ -95,7 +95,7 @@ module.exports = class App {
9595 */
9696
9797 async process ( ) {
98- this . resolveConfigAndInitialize ( )
98+ await this . resolveConfigAndInitialize ( )
9999 this . normalizeHeadTagUrls ( )
100100 this . themeAPI = loadTheme ( this )
101101 this . resolveTemplates ( )
You can’t perform that action at this time.
0 commit comments