fix(nuxt): respect custom export in component transform (#23715)

This commit is contained in:
Daniel Roe 2023-10-17 11:19:47 +01:00 committed by GitHub
parent 32c3a98407
commit e64ece70c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -36,12 +36,12 @@ export function createTransformPlugin (nuxt: Nuxt, getComponents: getComponentsT
{
as: c.pascalName,
from: withMode(mode),
name: 'default'
name: c.export || 'default'
},
{
as: 'Lazy' + c.pascalName,
from: withMode([mode, 'async'].filter(Boolean).join(',')),
name: 'default'
name: c.export || 'default'
}
]
})