nuxtlabs / nuxt-component-meta

Gather Nuxt components metadata on build time and make them available on production.
69 stars 6 forks source link

Handle more complex ContentSlot #44

Open Atinux opened 1 year ago

Atinux commented 1 year ago

Ex:

Tahul commented 1 year ago

@Atinux ; what do you think would be the best way to resolve this?

h('span', h(resolveComponent('ContentSlot'), { use: () => item }))

There is no real "proper" way to parse such usage.. except maybe if I only detect h(resolveComponent('ContentSlot')) as default slot in response?

That would kind of mean we only do support default slots for such usage?

If that's fine, I can make that change.

stafyniaksacha commented 1 year ago

@Tahul I think it's related to this: https://github.com/vuejs/rfcs/pull/192