vite-plugin-react-server
Version:
Vite plugin for React Server Components (RSC)
7 lines • 343 B
text/typescript
export function createBuildLoader() {
// In client-static, the RSC worker handles all module loading
// The main thread doesn't need to load modules directly
return async function buildLoader(_id: string) {
throw new Error("createBuildLoader is called from the client, but it is only available on the server.");
};
}