UNPKG

nuxt

Version:

[![Nuxt banner](./.github/assets/banner.png)](https://nuxt.com)

15 lines (14 loc) 347 B
import { defineComponent, h } from "vue"; import NuxtIsland from "#app/components/nuxt-island"; export const createServerComponent = (name) => { return defineComponent({ name, inheritAttrs: false, setup(_props, { attrs, slots }) { return () => h(NuxtIsland, { name, props: attrs }, slots); } }); };