/** * Lit's node builds for a server that doesn't run on Node. `lit-html` and * `@lit/reactive-element` pick their build by export condition: `node` * gets the one that renders through `@lit-labs/ssr`'s DOM shim, anything * else the browser's, which reads `document` as it loads. Vite resolves a * Node server with `node` among its conditions; an adapter for another * runtime doesn't (Cloudflare's resolves for `workerd`), and the server * bundle then fails on load with `document is not defined`. * * So in a server environment without `node`, the two resolve to their * node builds. Lit lays those out as the browser's under `node/`, which * keeps whatever else Vite chose, such as the development build; files * inside then import each other relatively, within `node/`. */ import type { Plugin } from 'vite'; /** The node build's path for a file of the browser's, or the file as is. */ export declare const nodeBuildOf: (file: string) => string; export declare const litNodeBuilds: () => Plugin; //# sourceMappingURL=node-builds.d.ts.map