Skip to content

Commit 57cfc9a

Browse files
committed
docs: add import glob negative patterns
1 parent 492d551 commit 57cfc9a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/docs/components/content/CodeBlockFile.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const props = defineProps<{
99
filename?: string
1010
}>()
1111
12-
const modules = import.meta.glob('./*.vue', { as: 'raw' })
12+
const modules = import.meta.glob(['./*.vue', '!./CodeBlockFile.vue'], { as: 'raw' })
1313
1414
function prepareContent(content: string) {
1515
return `\`\`\`${props.language || ''}${props.filename ? ` [${props.filename}]` : ''}\n${content}\n\`\`\``

0 commit comments

Comments
 (0)