From 427e3cc976770ec801605f561ebab3e1629f43be Mon Sep 17 00:00:00 2001 From: meteorlxy Date: Fri, 13 Sep 2024 00:47:34 +0800 Subject: [PATCH] fix(core): handle templateBuildRenderer option correctly --- packages/core/src/app/resolveAppOptions.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/core/src/app/resolveAppOptions.ts b/packages/core/src/app/resolveAppOptions.ts index d851c3d969..63b9379962 100644 --- a/packages/core/src/app/resolveAppOptions.ts +++ b/packages/core/src/app/resolveAppOptions.ts @@ -34,6 +34,7 @@ export const resolveAppOptions = ({ templateBuild = path.normalize( require.resolve('@vuepress/client/templates/build.html'), ), + templateBuildRenderer = templateRenderer, // common config bundler, debug = false, @@ -61,7 +62,7 @@ export const resolveAppOptions = ({ shouldPreload, shouldPrefetch, templateBuild, - templateBuildRenderer: templateRenderer, + templateBuildRenderer, bundler, debug, markdown,