Files
bunext/dist/functions/server/web-pages/tailwind-esbuild-plugin.d.ts
tbenandClaude Opus 5.5 4d4a79a6dd Push HMR updates before the SSR rebuild in dev
Client-only edits are sent to the browser right after the hydration build,
without re-running server functions; SSR rebuilds afterwards and props are
re-fetched only when a .server.ts output changed or after fullRebuild. Page
requests wait for an in-flight SSR rebuild. The SSR build no longer runs
Tailwind, the PostCSS processor is reused across rebuilds, and the watcher
debounce drops from 200ms to 50ms.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 07:32:33 +01:00

17 lines
608 B
TypeScript

import * as esbuild from "esbuild";
type Params = {
/**
* Run `.css` files through Tailwind/PostCSS. When `false`, every `.css`
* import loads as an empty stylesheet (for builds whose CSS output is
* never used, e.g. SSR).
*/
process_css?: boolean;
};
export declare function createTailwindEsbuildPlugin({ process_css, }?: Params): esbuild.Plugin;
/**
* Resolves `.css` imports like the Tailwind plugin but loads them empty.
*/
export declare const cssStubEsbuildPlugin: esbuild.Plugin;
declare const tailwindEsbuildPlugin: esbuild.Plugin;
export default tailwindEsbuildPlugin;