File tree 1 file changed +4
-4
lines changed
packages/@vuepress/core/lib/node
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 {
56
56
/**
57
57
* Resolve user config and initialize.
58
58
*
59
- * @returns {void }
59
+ * @returns {Promise< void> }
60
60
* @api private
61
61
*/
62
62
63
- resolveConfigAndInitialize ( ) {
63
+ async resolveConfigAndInitialize ( ) {
64
64
if ( this . options . siteConfig ) {
65
65
this . siteConfig = this . options . siteConfig
66
66
} else {
67
67
let siteConfig = loadConfig ( this . vuepressDir )
68
68
if ( isFunction ( siteConfig ) ) {
69
- siteConfig = siteConfig ( this )
69
+ siteConfig = await siteConfig ( this )
70
70
}
71
71
this . siteConfig = siteConfig
72
72
}
@@ -95,7 +95,7 @@ module.exports = class App {
95
95
*/
96
96
97
97
async process ( ) {
98
- this . resolveConfigAndInitialize ( )
98
+ await this . resolveConfigAndInitialize ( )
99
99
this . normalizeHeadTagUrls ( )
100
100
this . themeAPI = loadTheme ( this )
101
101
this . resolveTemplates ( )
You can’t perform that action at this time.
0 commit comments