Skip to content

Commit 9282f3d

Browse files
committed
chore: adjust
1 parent 61383fc commit 9282f3d

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

packages/plugin-rsc/src/plugin.ts

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -187,28 +187,6 @@ export type RscPluginOptions = {
187187
*
188188
* @param id - The absolute path of the client module
189189
* @returns The chunk name to group this module with, or undefined to use default behavior
190-
*
191-
* @example
192-
* ```js
193-
* clientChunks(id) {
194-
* // Group all client components in a specific route together
195-
* if (id.includes('/src/routes/dashboard/')) {
196-
* return 'dashboard-clients'
197-
* }
198-
* // Group third-party client components
199-
* if (id.includes('node_modules/@company/ui/')) {
200-
* return 'vendor-ui'
201-
* }
202-
* }
203-
* ```
204-
*
205-
* Benefits:
206-
* - Reduces the number of HTTP requests by bundling related client components
207-
* - Improves loading performance for route-based code splitting
208-
* - Allows fine-grained control over client-side bundle optimization
209-
*
210-
* Note: Tree-shaking is still applied, so only the actually used exports
211-
* from each module will be included in the final chunk.
212190
*/
213191
clientChunks?: (id: string) => string | undefined
214192
}

0 commit comments

Comments
 (0)