// Stubs for Node.js built-ins used by server-only modules that leak into the // UI fixture bundle. These keep esbuild from failing on `node:*` imports // while providing shape-compatible exports so the bundle stays loadable. export class AsyncLocalStorage { enterWith() {} exit() {} getStore() { return undefined; } run(_store, work) { return work(); } } export function createHash() { return { update: () => ({ digest: () => "", }), }; } export function randomUUID() { return "00000000-0000-0000-0000-000000000000"; } export async function readFile() { return Buffer.alloc(0); } export const path = { join: (...parts) => parts.join("/"), resolve: (...parts) => parts.join("/"), sep: "/", };