turbopack: drop ASTs of tree-shaken modules (#100871)
## Summary Release parsed ASTs of tree-shaken modules during binding-usage analysis. Analysis retains ASTs for code generation to consume and release, but these modules never reach codegen. Add `Vc::drop_content_hint()` to resolve a reference with normal output-dependency tracking, then drop the cell content without reading or recomputing missing content. Binding-usage analysis calls a default no-op `Module::drop_code_gen_data_hint()` for unused modules; ecmascript modules drop their parse result. Cleanup runs only for the whole-app graph and adds no extra tasks. ## Verification - 1,283 Rust tests and 111 production tests pass on the AST-only change. - Mixed fixture releases 43 resident ASTs; all 61 compared JS/HTML/CSS files match the baseline. Independent companion: #100896 (Pages entry). <!-- NEXT_JS_LLM --> <!-- fleet 20689ccb-eff4-4cad-b89e-beeccbd8caa3 --> --------- Co-authored-by:vercel-fleet-prod[bot] <318278635+vercel-fleet-prod[bot]@users.noreply.github.com> Co-authored-by:
Luke Sandberg <210140+lukesandberg@users.noreply.github.com> Co-authored-by:
Niklas Mischkulnig <4586894+mischnic@users.noreply.github.com>
Showing
Please
register
or
sign in
to comment