diff --git a/src/core/markdown.ts b/src/core/markdown.ts index 1b6d5d9..70203b5 100644 --- a/src/core/markdown.ts +++ b/src/core/markdown.ts @@ -173,7 +173,7 @@ export function createMarkdown(options: ResolvedOptions) { scriptLines.push( `import { computed } from 'vue'`, - `const props = ${`defineProps({ frontmatterMerge: { default: ${JSON.stringify(frontmatter)} } })`}`, + 'const props = defineProps({ frontmatterMerge: { type: Object } })', `const _frontmatter = ${JSON.stringify(frontmatter)}`, 'const frontmatter = computed(() => ({ ..._frontmatter, ...props.frontmatterMerge }))', ) diff --git a/test/__snapshots__/excerpt.test.ts.snap b/test/__snapshots__/excerpt.test.ts.snap index 8238e30..4627a59 100644 --- a/test/__snapshots__/excerpt.test.ts.snap +++ b/test/__snapshots__/excerpt.test.ts.snap @@ -12,7 +12,7 @@ exports[`excerpt > raw excerpt 1`] = `