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
9813208f
Unverified
Commit
9813208f
authored
Oct 09, 2025
by
Tobias Koppers
Committed by
GitHub
Oct 09, 2025
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Turbopack: convert HashMap to IndexMap for deterministic tasks (#84641)
### What? Ensure more deterministic builds
parent
ad90a674
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
6 deletions
+5
-6
loadable_manifest.rs
crates/next-api/src/loadable_manifest.rs
+2
-3
typescript.rs
turbopack/crates/turbopack-resolve/src/typescript.rs
+3
-3
No files found.
crates/next-api/src/loadable_manifest.rs
View file @
9813208f
use
anyhow
::
Result
;
use
anyhow
::
Result
;
use
next_core
::{
next_manifests
::
LoadableManifest
,
util
::
NextRuntime
};
use
next_core
::{
next_manifests
::
LoadableManifest
,
util
::
NextRuntime
};
use
rustc_hash
::
FxHashMap
;
use
turbo_tasks
::{
FxIndexMap
,
ResolvedVc
,
TryFlatJoinIterExt
,
Vc
};
use
turbo_tasks
::{
ResolvedVc
,
TryFlatJoinIterExt
,
Vc
};
use
turbo_tasks_fs
::{
File
,
FileContent
,
FileSystemPath
};
use
turbo_tasks_fs
::{
File
,
FileContent
,
FileSystemPath
};
use
turbopack_core
::{
use
turbopack_core
::{
asset
::
AssetContent
,
asset
::
AssetContent
,
...
@@ -21,7 +20,7 @@ pub async fn create_react_loadable_manifest(
...
@@ -21,7 +20,7 @@ pub async fn create_react_loadable_manifest(
)
->
Result
<
Vc
<
OutputAssets
>>
{
)
->
Result
<
Vc
<
OutputAssets
>>
{
let
dynamic_import_entries
=
&*
dynamic_import_entries
.await
?
;
let
dynamic_import_entries
=
&*
dynamic_import_entries
.await
?
;
let
mut
loadable_manifest
:
Fx
HashMap
<
String
,
LoadableManifest
>
=
FxHash
Map
::
default
();
let
mut
loadable_manifest
:
Fx
IndexMap
<
String
,
LoadableManifest
>
=
FxIndex
Map
::
default
();
for
(
_
,
(
module_id
,
chunk_output
))
in
dynamic_import_entries
.into_iter
()
{
for
(
_
,
(
module_id
,
chunk_output
))
in
dynamic_import_entries
.into_iter
()
{
let
chunk_output
=
chunk_output
.await
?
;
let
chunk_output
=
chunk_output
.await
?
;
...
...
turbopack/crates/turbopack-resolve/src/typescript.rs
View file @
9813208f
use
std
::
{
collections
::
HashMap
,
mem
::
take
}
;
use
std
::
mem
::
take
;
use
anyhow
::
Result
;
use
anyhow
::
Result
;
use
serde_json
::
Value
as
JsonValue
;
use
serde_json
::
Value
as
JsonValue
;
use
turbo_rcstr
::{
RcStr
,
rcstr
};
use
turbo_rcstr
::{
RcStr
,
rcstr
};
use
turbo_tasks
::{
ResolvedVc
,
ValueDefault
,
Vc
,
fxindexset
};
use
turbo_tasks
::{
FxIndexMap
,
ResolvedVc
,
ValueDefault
,
Vc
,
fxindexset
};
use
turbo_tasks_fs
::{
FileContent
,
FileJsonContent
,
FileSystemPath
,
FileSystemPathOption
};
use
turbo_tasks_fs
::{
FileContent
,
FileJsonContent
,
FileSystemPath
,
FileSystemPathOption
};
use
turbopack_core
::{
use
turbopack_core
::{
asset
::
Asset
,
asset
::
Asset
,
...
@@ -287,7 +287,7 @@ pub async fn tsconfig_resolve_options(
...
@@ -287,7 +287,7 @@ pub async fn tsconfig_resolve_options(
None
None
};
};
let
mut
all_paths
=
HashMap
::
new
();
let
mut
all_paths
=
FxIndexMap
::
default
();
for
(
content
,
source
)
in
configs
.iter
()
.rev
()
{
for
(
content
,
source
)
in
configs
.iter
()
.rev
()
{
if
let
FileJsonContent
::
Content
(
json
)
=
&*
content
.await
?
if
let
FileJsonContent
::
Content
(
json
)
=
&*
content
.await
?
&&
let
JsonValue
::
Object
(
paths
)
=
&
json
[
"compilerOptions"
][
"paths"
]
&&
let
JsonValue
::
Object
(
paths
)
=
&
json
[
"compilerOptions"
][
"paths"
]
...
...
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