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')