diff --git a/crates/next-api/src/module_graph.rs b/crates/next-api/src/module_graph.rs index 3874999c363c5..65c729e149660 100644 --- a/crates/next-api/src/module_graph.rs +++ b/crates/next-api/src/module_graph.rs @@ -72,9 +72,10 @@ impl SingleModuleGraph { graph.add_edge(parent_idx, idx, ()); } - // TODO this includes - // [project]/packages/next/dist/shared/lib/lazy-dynamic/loadable.js.map for reference in primary_referenced_modules(*module).await?.iter() { + if reference.ident().path().await?.extension_ref() == Some("map") { + continue; + } stack.push((Some(idx), *reference)); } }