Skip to content

Commit 2148f77

Browse files
committed
fix: wrap in array
1 parent 6fe7012 commit 2148f77

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/templates.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ export {}
185185
getContents: ({ app }) => {
186186
const image = app?.components?.find(c => c.pascalName === 'NuxtImg' && !/nuxt(?:-nightly)?\/dist\/app/.test(c.filePath))
187187

188-
return image ? genExport(image.filePath, { name: image.export, as: 'default' }) : 'export default "img"'
188+
return image ? genExport(image.filePath, [{ name: image.export, as: 'default' }]) : 'export default "img"'
189189
}
190190
})
191191

0 commit comments

Comments
 (0)