pull/6537/head
Mert Sincan 2024-10-06 11:29:24 +01:00
parent 0213fbb437
commit 31aff977d3
1 changed files with 4 additions and 1 deletions

View File

@ -1,4 +1,5 @@
import { addPlugin, addPluginTemplate, addTemplate, createResolver, defineNuxtModule } from '@nuxt/kit';
import { isNotEmpty } from '@primeuix/utils';
import { PrimeVueResolver } from '@primevue/auto-import-resolver';
import type { MetaType } from '@primevue/metadata';
import { normalize } from 'pathe';
@ -62,9 +63,11 @@ export default defineNuxtModule<ModuleOptions>({
let registeredStyles: MetaType[] = registered.styles;
if (autoImport) {
const dts = isNotEmpty(moduleOptions.components?.prefix) || isNotEmpty(moduleOptions.directives?.prefix);
Components(
{
dts: true,
dts,
resolvers: [
PrimeVueResolver({
components: moduleOptions.components,