import { Plugin } from "vite"; //#region src/vite.d.ts /** * Vite plugin that wires a project up to the Tako build/dev pipeline. * * Responsibilities: * - Marks SDK server entries as SSR-external so Vite doesn't try to bundle * server-only modules (secrets, workflow RPC, storage signing, etc.). * - In dev, swaps Vite's default logger for structured JSON lines so the * tako dev server can render them alongside other subprocess logs. * - Under `tako dev`, reports the dev server's bound port back to the parent * over fd 4 and adds configured dev route hosts to `server.allowedHosts`. * - On build, records the entry chunk filenames so the Tako runtime can find * the generated entrypoint. * * Add to `vite.config.ts` alongside any framework plugin: * * @example * ```typescript * import { defineConfig } from "vite"; * import { tako } from "tako.sh/vite"; * * export default defineConfig({ plugins: [tako()] }); * ``` * * @returns A Vite {@link Plugin} instance. */ declare function tako(): Plugin; //#endregion export { tako }; //# sourceMappingURL=vite.d.mts.map