diff --git a/packages/nuxt-module/src/register.ts b/packages/nuxt-module/src/register.ts index 2f5e512e9..fdfc648fa 100644 --- a/packages/nuxt-module/src/register.ts +++ b/packages/nuxt-module/src/register.ts @@ -45,7 +45,7 @@ function registerComponents(resolvePath: any, moduleOptions: ModuleOptions) { global: true }; - !moduleOptions.autoImport && addComponent(opt); + moduleOptions.autoImport && addComponent(opt); return { ..._item,