Skip to content

Commit

Permalink
ignore sourcemaps
Browse files Browse the repository at this point in the history
  • Loading branch information
mischnic committed Nov 29, 2024
1 parent 51ad471 commit 80506fa
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions crates/next-api/src/module_graph.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
}
Expand Down

0 comments on commit 80506fa

Please sign in to comment.