Skip to content

refactor: adjust optimize_chunks hook signature#12596

Draft
hardfist wants to merge 3 commits intomainfrom
codex/change-mut-to-in-optimize_chunks-hook
Draft

refactor: adjust optimize_chunks hook signature#12596
hardfist wants to merge 3 commits intomainfrom
codex/change-mut-to-in-optimize_chunks-hook

Conversation

@hardfist
Copy link
Contributor

Summary

  • update the optimize_chunks hook to accept a shared Compilation reference and provide a safe-guarded escape hatch for mutations when exclusive access is guaranteed
  • align chunk optimization plugins with the new hook signature

Related links

  • n/a

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).

Codex Task

@netlify
Copy link

netlify bot commented Dec 31, 2025

Deploy Preview for rspack canceled.

Name Link
🔨 Latest commit b096ac7
🔍 Latest deploy log https://app.netlify.com/projects/rspack/deploys/69561566dcd1650008ffdedb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant