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.

12 lines (11 loc) 357 B
import { defineComponent } from "vue"; import { devPagesDir } from "#build/nuxt.config.mjs"; export default defineComponent({ name: "NuxtPage", setup(_, props) { if (import.meta.dev) { console.warn(`Create a Vue component in the \`${devPagesDir}/\` directory to enable \`<NuxtPage>\``); } return () => props.slots.default?.(); } });