diff --git a/packages/nuxt/src/module.ts b/packages/nuxt/src/module.ts index 012f0bd..6eab7ed 100644 --- a/packages/nuxt/src/module.ts +++ b/packages/nuxt/src/module.ts @@ -37,7 +37,7 @@ export default defineNuxtModule({ if (options.autoImportComponents) { motionComponents.forEach((component) => { addComponent({ - name: `${options.prefix}${component}`, + name: options.prefix ? `${options.prefix}${component}` : component, export: component, filePath: '@oku-ui/motion', })