We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9dce835 commit cbe1af0Copy full SHA for cbe1af0
packages/@vuepress/core/lib/node/Page.js
@@ -286,13 +286,17 @@ module.exports = class Page {
286
*/
287
288
async enhance (enhancers) {
289
+ const enhancerPromises = []
290
+
291
for (const { name: pluginName, value: enhancer } of enhancers) {
292
try {
- await enhancer(this)
293
+ enhancerPromises.push(enhancer(this))
294
} catch (error) {
295
console.log(error)
296
throw new Error(`[${pluginName}] execute extendPageData failed.`)
297
}
298
299
300
+ return Promise.all(enhancerPromises)
301
302
0 commit comments