You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/plugin-rsc/README.md
+8-12Lines changed: 8 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -441,11 +441,9 @@ This is a wrapper of `react-server-dom` API and helper API to setup a minimal RS
441
441
442
442
## CSS Support
443
443
444
-
### How Auto CSS Injection Works
444
+
The plugin automatically handles CSS code-splitting and injection for React server components. This eliminates the need to manually call `import.meta.viteRsc.loadCss()` in most cases.
445
445
446
-
The plugin automatically handles CSS code-splitting and injection for React components. This eliminates the need to manually call `import.meta.viteRsc.loadCss()` in most cases.
447
-
448
-
1. **Component Detection**: The plugin automatically detects React components by looking for:
446
+
1. **Component Detection**: The plugin automatically detects React server components by looking for:
449
447
- Function exports with capital letter names (e.g., `export function Page() {}`)
450
448
- Default exports that are functions with capital names (e.g., `export default function Page() {}`)
451
449
- Const exports assigned to functions with capital names (e.g., `export const Page = () => {}`)
0 commit comments