@vitejs/plugin-rsc
Version:
React Server Components (RSC) support for Vite.
23 lines (19 loc) • 536 B
TypeScript
declare global {
interface ImportMeta {
readonly viteRsc: {
loadCss: (importer?: string) => import('react').ReactNode
loadModule: <T>(environmentName: string, entryName: string) => Promise<T>
loadBootstrapScriptContent: (entryName: string) => Promise<string>
}
}
interface ImportMetaEnv {
readonly __vite_rsc_build__: boolean
}
}
declare module 'vite' {
interface UserConfig {
/** Options for `@vitejs/plugin-rsc` */
rsc?: import('@vitejs/plugin-rsc').RscPluginOptions
}
}
export {}