Nuxt/packages/nuxt/src/pages/runtime/page-placeholder.ts

12 lines
284 B
TypeScript
Raw Normal View History

import { defineComponent } from 'vue'
export default defineComponent({
name: 'NuxtPage',
setup (_, props) {
if (process.dev) {
console.warn('Create a Vue component in the `pages/` directory to enable `<NuxtPage>`')
}
return () => props.slots.default?.()
}
})