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) 435 B
import { createCommentVNode, createElementBlock, defineComponent } from "vue"; import { clientNodePlaceholder } from "#build/nuxt.config.mjs"; //#region src/app/components/server-placeholder.ts const ServerPlaceholder = defineComponent({ name: "ServerPlaceholder", render() { return clientNodePlaceholder ? createCommentVNode("placeholder") : createElementBlock("div"); } }); //#endregion export { ServerPlaceholder as default };