refactor(builder): await build.createRoutes to allow async functions inside it (#6352)

This commit is contained in:
xxRockOnxx 2019-09-04 18:00:58 +08:00 committed by Pooya Parsa
parent c010addb34
commit 519ced4c4a

View File

@ -369,7 +369,7 @@ export default class Builder {
trailingSlash
})
} else { // If user defined a custom method to create routes
templateVars.router.routes = this.options.build.createRoutes(
templateVars.router.routes = await this.options.build.createRoutes(
this.options.srcDir
)
}