mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-25 07:05:11 +00:00
fix(nuxt): respect custom export in component transform (#23715)
This commit is contained in:
parent
32c3a98407
commit
e64ece70c0
@ -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'
|
||||
}
|
||||
]
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user