mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-18 17:35:57 +00:00
fix(kit): pass options
object to lodash templates (#942)
This commit is contained in:
parent
571bf94d39
commit
aa2acd5e48
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user