From aa2acd5e48aab4934196ff2afb7a3858cc9577fd Mon Sep 17 00:00:00 2001 From: Dizzy <19627670+Diizzayy@users.noreply.github.com> Date: Mon, 18 Oct 2021 09:36:04 +0000 Subject: [PATCH] fix(kit): pass `options` object to lodash templates (#942) --- packages/kit/src/module/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/kit/src/module/utils.ts b/packages/kit/src/module/utils.ts index bc5b907e03..9568fb8d5d 100644 --- a/packages/kit/src/module/utils.ts +++ b/packages/kit/src/module/utils.ts @@ -273,7 +273,7 @@ export function addVitePlugin (plugin: VitePlugin, options?: ExtendViteConfigOpt } export async function compileTemplate (template: NuxtTemplate, ctx: any) { - const data = { ...ctx, ...template.options } + const data = { ...ctx, options: template.options } if (template.src) { try { const srcContents = await fsp.readFile(template.src, 'utf-8')