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.

15 lines (14 loc) 311 B
import { defineComponent } from "vue"; export default defineComponent({ name: "DevOnly", inheritAttrs: false, ...import.meta.dev && { slots: Object }, setup(_, props) { if (import.meta.dev) { return () => props.slots.default?.(); } return () => props.slots.fallback?.(); } });