Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
2cd4f0a7
Unverified
Commit
2cd4f0a7
authored
Aug 12, 2026
by
Sam Poder
Committed by
GitHub
Aug 12, 2026
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[turbopack] Document clusters for chunking (#97267)
Adds docs for `clusters`.
parent
10fe9bea
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
turbopackChunking.mdx
...ference/05-config/01-next-config-js/turbopackChunking.mdx
+5
-0
No files found.
docs/01-app/03-api-reference/05-config/01-next-config-js/turbopackChunking.mdx
View file @
2cd4f0a7
...
...
@@ -148,6 +148,11 @@ This avoids re-downloading JavaScript the browser already has when navigating.
These change the assumptions the chunker makes when weighing whether merging two
chunks is worth it.
- **`clusters`** (an array of arrays of `RegExp`, e.g.
`[[/^\/dashboard/, /^\/settings/]]`): groups of routes that are commonly
visited together, matched against the route pathname. Turbopack assumes
navigations are likely to stay within a cluster, so chunks shared by a
cluster's routes are merged more eagerly.
- **`firstPageLoadPriority`** (a number between `0` and `1`): how heavily to
weight the benefit of merging chunks for a single page load. Higher values
merge more eagerly. If you don't have a better value, your site's bounce rate
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment