Closed farnabaz closed 1 year ago
I don't understand why slots are not detected when I filter global components
codes are exactly same in both cases:
component.fullPath /Users/far/projects/nuxt/nuxt-component-meta/test/fixtures/basic/components/global/TestContent.vue
slots: [
{
name: 'title',
type: '{}',
rawType: undefined,
description: '',
schema: { kind: 'object', type: '{}', schema: {} }
},
{
name: 'default',
type: '{}',
rawType: undefined,
description: '',
schema: { kind: 'object', type: '{}', schema: {} }
}
]
<template>
<div>
<h1><slot name="title" /></h1>
<slot />
</div>
</template>
<script setup>defineProps()</script>
component.fullPath /Users/far/projects/nuxt/nuxt-component-meta/test/fixtures/basic/components/global/TestContent.vue
slots: []
<template>
<div>
<h1><slot name="title" /></h1>
<slot />
</div>
</template>
<script setup>defineProps()</script>
@Tahul do you have an idea about it?
We need to find a solution for this
Looking into it :)
I think this should be configurable
Issue is fixed and tests are passing; merging this.
I added the feature behind globalsOnly
option that can be enabled from the module config.
resolves nuxtlabs/nuxt-component-meta#50