hydro-js-integrations
Version:
Integrations for Vite and Astro and more TBC
17 lines (16 loc) • 422 B
TypeScript
import type { getRenderer } from "./server";
export default function hydroJS({ renderer, }?: {
renderer?: ReturnType<typeof getRenderer>;
}): {
name: string;
config(): {
esbuild: {
jsxFactory: string;
jsxFragment: string;
jsxInject: string;
};
};
transform(code: string, _id: string, options?: {
ssr?: boolean;
}): string | undefined;
};