File tree Expand file tree Collapse file tree 1 file changed +0
-22
lines changed
Expand file tree Collapse file tree 1 file changed +0
-22
lines changed Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments