Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: remove module graph accessor #7368

Merged
merged 1 commit into from
Jul 30, 2024
Merged

refactor: remove module graph accessor #7368

merged 1 commit into from
Jul 30, 2024

Conversation

ahabhgk
Copy link
Collaborator

@ahabhgk ahabhgk commented Jul 30, 2024

Summary

max_target is a cache for cacheing the result of get_max_target, actually in most cases, get_max_target will just return export_info.target (the fast path), and in slow path, the calculate is not complex at all (checkout webpack/webpack#13068), so remove the cache to let get_max_target require a &ModuleGraph, and we don't need the ModuleGraphAccessor anymore

Checklist

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

@github-actions github-actions bot added the team The issue/pr is created by the member of Rspack. label Jul 30, 2024
Copy link

netlify bot commented Jul 30, 2024

Deploy Preview for rspack ready!

Name Link
🔨 Latest commit 586d823
🔍 Latest deploy log https://app.netlify.com/sites/rspack/deploys/66a8d1878530d00008fe1aa3
😎 Deploy Preview https://deploy-preview-7368--rspack.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@ahabhgk ahabhgk requested a review from LingyuCoder July 30, 2024 11:47
@ahabhgk ahabhgk merged commit 6acb63a into main Jul 30, 2024
35 checks passed
@ahabhgk ahabhgk deleted the refactor-remove-mga branch July 30, 2024 11:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
team The issue/pr is created by the member of Rspack.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants