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
ae545b4e
Commit
ae545b4e
authored
Aug 11, 2025
by
Luke Sandberg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drop an opt out PACK-4578
parent
161a8ba0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
18 deletions
+9
-18
mod.rs
turbopack/crates/turbopack-core/src/module_graph/mod.rs
+9
-18
No files found.
turbopack/crates/turbopack-core/src/module_graph/mod.rs
View file @
ae545b4e
...
@@ -347,26 +347,17 @@ impl SingleModuleGraph {
...
@@ -347,26 +347,17 @@ impl SingleModuleGraph {
#[cfg(debug_assertions)]
#[cfg(debug_assertions)]
{
{
use
once_cell
::
sync
::
Lazy
;
let
mut
duplicates
=
Vec
::
new
();
static
CHECK_FOR_DUPLICATE_MODULES
:
Lazy
<
bool
>
=
Lazy
::
new
(||
{
let
mut
set
=
FxHashSet
::
default
();
match
std
::
env
::
var_os
(
"TURBOPACK_TEMP_DISABLE_DUPLICATE_MODULES_CHECK"
)
{
for
&
module
in
modules
.keys
()
{
Some
(
v
)
=>
v
!=
"1"
&&
v
!=
"true"
,
let
ident
=
module
.ident
()
.to_string
()
.await
?
;
None
=>
true
,
if
!
set
.insert
(
ident
.clone
())
{
}
duplicates
.push
(
ident
)
});
if
*
CHECK_FOR_DUPLICATE_MODULES
{
let
mut
duplicates
=
Vec
::
new
();
let
mut
set
=
FxHashSet
::
default
();
for
&
module
in
modules
.keys
()
{
let
ident
=
module
.ident
()
.to_string
()
.await
?
;
if
!
set
.insert
(
ident
.clone
())
{
duplicates
.push
(
ident
)
}
}
if
!
duplicates
.is_empty
()
{
panic!
(
"Duplicate module idents in graph: {duplicates:#?}"
);
}
}
}
}
if
!
duplicates
.is_empty
()
{
panic!
(
"Duplicate module idents in graph: {duplicates:#?}"
);
}
}
}
let
graph
=
SingleModuleGraph
{
let
graph
=
SingleModuleGraph
{
...
...
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