vite-plugin-react-server
Version:
Vite plugin for React Server Components (RSC)
9 lines • 624 B
text/typescript
import { assertServerCondition } from "./assertServerCondition.js";
export { reactServerPlugin } from "./react-server/plugin.js";
export { reactClientPlugin } from "./react-client/plugin.js";
export { reactTransformPlugin } from "./transformer/plugin.js";
export { reactPreservePlugin } from "./preserver/plugin.js";
export { vitePluginReactServer } from "./react-server/index.js";
// the main plugin is version is the server version, if you want the client version, use the `vite-plugin-react-server/client` import
// this is because the workflow assumes main thread = react server condition
assertServerCondition(process);