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

fix: panic when get max target in find target #7082

Merged
merged 3 commits into from
Jul 9, 2024
Merged

Conversation

LingyuCoder
Copy link
Collaborator

Summary

fix #7057
fix #7062
fix #7077
fix #7078

In webpack, module graph is always mutable and will insert the max target of export info while getting it, even during the code gen.

But in rspack, module graph should be immutable during the code gen. So can only get max target when it has been set. If it is not exists, export info should generate it but not set it into export info.

Checklist

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

@LingyuCoder LingyuCoder requested a review from JSerFeng July 9, 2024 02:50
@github-actions github-actions bot added team The issue/pr is created by the member of Rspack. release: bug fix release: bug related release(mr only) labels Jul 9, 2024
Copy link

netlify bot commented Jul 9, 2024

Deploy Preview for rspack canceled.

Name Link
🔨 Latest commit 6815d02
🔍 Latest deploy log https://app.netlify.com/sites/rspack/deploys/668cd47aa41fbe0008432d4b

@LingyuCoder LingyuCoder enabled auto-merge (squash) July 9, 2024 04:53
@LingyuCoder LingyuCoder merged commit 67c00aa into main Jul 9, 2024
29 checks passed
@LingyuCoder LingyuCoder deleted the fix/max-target-panic branch July 9, 2024 06:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release: bug fix release: bug related release(mr only) team The issue/pr is created by the member of Rspack.
Projects
None yet
4 participants