Commit ae545b4e authored by Luke Sandberg's avatar Luke Sandberg

drop an opt out PACK-4578

parent 161a8ba0
...@@ -347,14 +347,6 @@ impl SingleModuleGraph { ...@@ -347,14 +347,6 @@ impl SingleModuleGraph {
#[cfg(debug_assertions)] #[cfg(debug_assertions)]
{ {
use once_cell::sync::Lazy;
static CHECK_FOR_DUPLICATE_MODULES: Lazy<bool> = Lazy::new(|| {
match std::env::var_os("TURBOPACK_TEMP_DISABLE_DUPLICATE_MODULES_CHECK") {
Some(v) => v != "1" && v != "true",
None => true,
}
});
if *CHECK_FOR_DUPLICATE_MODULES {
let mut duplicates = Vec::new(); let mut duplicates = Vec::new();
let mut set = FxHashSet::default(); let mut set = FxHashSet::default();
for &module in modules.keys() { for &module in modules.keys() {
...@@ -367,7 +359,6 @@ impl SingleModuleGraph { ...@@ -367,7 +359,6 @@ impl SingleModuleGraph {
panic!("Duplicate module idents in graph: {duplicates:#?}"); panic!("Duplicate module idents in graph: {duplicates:#?}");
} }
} }
}
let graph = SingleModuleGraph { let graph = SingleModuleGraph {
graph: TracedDiGraph::new(graph), graph: TracedDiGraph::new(graph),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment