We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6fe7012 commit 2148f77Copy full SHA for 2148f77
src/templates.ts
@@ -185,7 +185,7 @@ export {}
185
getContents: ({ app }) => {
186
const image = app?.components?.find(c => c.pascalName === 'NuxtImg' && !/nuxt(?:-nightly)?\/dist\/app/.test(c.filePath))
187
188
- return image ? genExport(image.filePath, { name: image.export, as: 'default' }) : 'export default "img"'
+ return image ? genExport(image.filePath, [{ name: image.export, as: 'default' }]) : 'export default "img"'
189
}
190
})
191
0 commit comments