UNPKG

nuxt

Version:

Nuxt is a free and open-source framework with an intuitive and extendable way to create type-safe, performant and production-grade full-stack web applications and websites with Vue.js.

16 lines (15 loc) 452 B
import { defineAsyncComponent, defineComponent, h } from "vue"; import ClientOnly from "#app/components/client-only"; export const createClientPage = /* @__NO_SIDE_EFFECTS__ */ (loader) => { const page = defineAsyncComponent(loader); return defineComponent({ inheritAttrs: false, setup(_, { attrs }) { return () => h("div", [ h(ClientOnly, void 0, { default: () => h(page, attrs) }) ]); } }); };