next.js
12273f50 - fix(turbopack): Remove self-references from tree shaking results (#72567)

Commit
1 year ago
fix(turbopack): Remove self-references from tree shaking results (#72567) ### What? Make the graph acyclic while condensation graphs so that the self-references do not exist. We are using `condensation` from `petgraph` and it has `make_acyclic: bool` option. I enabled it to make tree shaking a bit faster. ### Why? Self-reference in the module graph means slower build and needless runtime operations. ### How? Closes PACK-3439
Author
Parents
Loading