From b469f931f802752fbe84aa3efe61a0f4930ca308 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Nov=C3=A1k?= Date: Wed, 22 Jul 2020 12:30:50 +0200 Subject: [PATCH] feat(builder): support async `extendRoutes` (#7754) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Martin Novák --- packages/builder/src/builder.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/builder/src/builder.js b/packages/builder/src/builder.js index d0dfe27124..72d59adadf 100644 --- a/packages/builder/src/builder.js +++ b/packages/builder/src/builder.js @@ -414,7 +414,7 @@ export default class Builder { // router.extendRoutes method if (typeof this.options.router.extendRoutes === 'function') { // let the user extend the routes - const extendedRoutes = this.options.router.extendRoutes( + const extendedRoutes = await this.options.router.extendRoutes( templateVars.router.routes, r )