UNPKG

one

Version:

One is a new React Framework that makes Vite serve both native and web.

25 lines (24 loc) 758 B
import { VIRTUAL_SSR_CSS_HREF } from "../constants.mjs"; import { Fragment, jsx, jsxs } from "react/jsx-runtime"; function DevHead() { if (globalThis["__vxrnIsSPA"]) return null; if (process.env.NODE_ENV === "development") return /* @__PURE__ */jsxs(Fragment, { children: [/* @__PURE__ */jsx("link", { rel: "preload", href: VIRTUAL_SSR_CSS_HREF, as: "style" }), /* @__PURE__ */jsx("link", { rel: "stylesheet", href: VIRTUAL_SSR_CSS_HREF, "data-ssr-css": true, suppressHydrationWarning: true }), /* @__PURE__ */jsx("script", { type: "module", src: "/@one/dev.js", suppressHydrationWarning: true })] }); return null; } export { DevHead }; //# sourceMappingURL=DevHead.mjs.map