Skip to main content

find_cut_modules

Function find_cut_modules 

Source
pub fn find_cut_modules(
    graph: &ModuleGraph,
    chains: &[Vec<ModuleId>],
    entry: ModuleId,
    target: &ChainTarget,
    top_n: i32,
    exclusive_weights: &[u64],
) -> Vec<CutModule>
Expand description

Find modules that appear in all chains from entry to a package.

Removing any one of these severs every import path to the target. Sorted by exclusive weight descending (highest-impact first), truncated to top_n.