import { useEffect } from "preact/hooks"; import { useSignal } from "@preact/signals"; import { IS_BROWSER } from "fresh/runtime"; export function NodeProcess() { const active = useSignal(false); useEffect(() => { active.value = true; }, []); // @ts-ignore bundling // deno-lint-ignore no-process-globals const value = IS_BROWSER ? process.env.NODE_ENV : "no"; return (
value: {value}
); }