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
ba7957e1
Unverified
Commit
ba7957e1
authored
Jan 17, 2025
by
Tobias Koppers
Committed by
GitHub
Jan 17, 2025
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix layout segment optimization (#75035)
### What? fix layout segment optimization more fixes for layout segment
parent
1baa63ae
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
app_client_references_chunks.rs
...es/next-core/src/next_app/app_client_references_chunks.rs
+8
-6
No files found.
crates/next-core/src/next_app/app_client_references_chunks.rs
View file @
ba7957e1
...
@@ -5,7 +5,9 @@ use turbo_tasks::{
...
@@ -5,7 +5,9 @@ use turbo_tasks::{
FxIndexMap
,
ResolvedVc
,
TryFlatJoinIterExt
,
TryJoinIterExt
,
Value
,
ValueToString
,
Vc
,
FxIndexMap
,
ResolvedVc
,
TryFlatJoinIterExt
,
TryJoinIterExt
,
Value
,
ValueToString
,
Vc
,
};
};
use
turbopack_core
::{
use
turbopack_core
::{
chunk
::{
availability_info
::
AvailabilityInfo
,
ChunkingContext
,
ChunkingContextExt
},
chunk
::{
availability_info
::
AvailabilityInfo
,
ChunkableModules
,
ChunkingContext
,
ChunkingContextExt
,
},
module
::
Module
,
module
::
Module
,
module_graph
::
ModuleGraph
,
module_graph
::
ModuleGraph
,
output
::
OutputAssets
,
output
::
OutputAssets
,
...
@@ -189,7 +191,7 @@ pub async fn get_app_client_references_chunks(
...
@@ -189,7 +191,7 @@ pub async fn get_app_client_references_chunks(
let
ecmascript_client_reference_ref
=
let
ecmascript_client_reference_ref
=
ecmascript_client_reference
.await
?
;
ecmascript_client_reference
.await
?
;
Some
(
ResolvedVc
::
upcast
(
Some
(
*
ResolvedVc
::
upcast
(
ecmascript_client_reference_ref
.ssr_module
,
ecmascript_client_reference_ref
.ssr_module
,
))
))
}
}
...
@@ -209,7 +211,7 @@ pub async fn get_app_client_references_chunks(
...
@@ -209,7 +211,7 @@ pub async fn get_app_client_references_chunks(
ssr_chunking_context
.chunk_group_multiple
(
ssr_chunking_context
.chunk_group_multiple
(
base_ident
.with_modifier
(
ssr_modules_modifier
()),
base_ident
.with_modifier
(
ssr_modules_modifier
()),
Vc
::
cell
(
ssr_modules
),
ChunkableModules
::
interned
(
ssr_modules
),
module_graph
,
module_graph
,
Value
::
new
(
current_ssr_availability_info
),
Value
::
new
(
current_ssr_availability_info
),
)
)
...
@@ -227,10 +229,10 @@ pub async fn get_app_client_references_chunks(
...
@@ -227,10 +229,10 @@ pub async fn get_app_client_references_chunks(
)
=>
{
)
=>
{
let
ecmascript_client_reference_ref
=
let
ecmascript_client_reference_ref
=
ecmascript_client_reference
.await
?
;
ecmascript_client_reference
.await
?
;
ResolvedVc
::
upcast
(
ecmascript_client_reference_ref
.client_module
)
*
ResolvedVc
::
upcast
(
ecmascript_client_reference_ref
.client_module
)
}
}
ClientReferenceType
::
CssClientReference
(
css_module
)
=>
{
ClientReferenceType
::
CssClientReference
(
css_module
)
=>
{
ResolvedVc
::
upcast
(
*
css_module
)
*
ResolvedVc
::
upcast
(
*
css_module
)
}
}
})
})
})
})
...
@@ -245,7 +247,7 @@ pub async fn get_app_client_references_chunks(
...
@@ -245,7 +247,7 @@ pub async fn get_app_client_references_chunks(
Some
(
client_chunking_context
.chunk_group_multiple
(
Some
(
client_chunking_context
.chunk_group_multiple
(
base_ident
.with_modifier
(
client_modules_modifier
()),
base_ident
.with_modifier
(
client_modules_modifier
()),
Vc
::
cell
(
client_modules
),
ChunkableModules
::
interned
(
client_modules
),
module_graph
,
module_graph
,
Value
::
new
(
current_client_availability_info
),
Value
::
new
(
current_client_availability_info
),
))
))
...
...
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