fix(templates): generate js templates

This commit is contained in:
Daniel Roe 2022-03-10 22:41:01 +00:00
parent f24d9689c0
commit 2c59081c6c

View File

@ -95,7 +95,7 @@ export const RenderPlugin = () => {
default: JSON.stringify(value) default: JSON.stringify(value)
}])) }]))
const vueCode = [ const vueCode = [
'<script setup lang="ts">', '<script setup>',
title && 'import { useMeta } from \'#app\'', title && 'import { useMeta } from \'#app\'',
`const props = defineProps(${props})`, `const props = defineProps(${props})`,
title && 'useMeta(' + genObjectFromRawEntries([ title && 'useMeta(' + genObjectFromRawEntries([