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.

11 lines (10 loc) 239 B
import { defineComponent } from "vue"; export default defineComponent({ name: "DevOnly", setup(_, props) { if (import.meta.dev) { return () => props.slots.default?.(); } return () => props.slots.fallback?.(); } });