From e64ece70c0ac213d7d09029a70680b7e65089512 Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Tue, 17 Oct 2023 11:19:47 +0100 Subject: [PATCH] fix(nuxt): respect custom export in component transform (#23715) --- packages/nuxt/src/components/transform.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/nuxt/src/components/transform.ts b/packages/nuxt/src/components/transform.ts index d4ca5fa743..39258224e3 100644 --- a/packages/nuxt/src/components/transform.ts +++ b/packages/nuxt/src/components/transform.ts @@ -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' } ] })