Skip to content

fix(make): isolated module clean incomplete#7761

Merged
jerrykingxyz merged 2 commits intomainfrom
jerry/clean_isolated_module
Sep 4, 2024
Merged

fix(make): isolated module clean incomplete#7761
jerrykingxyz merged 2 commits intomainfrom
jerry/clean_isolated_module

Conversation

@jerrykingxyz
Copy link
Copy Markdown
Contributor

@jerrykingxyz jerrykingxyz commented Sep 2, 2024

Summary

Fix the step of clean isolated module in cutout will only clean one layer module.

There are a example:

  1. if we have a module graph a -> b -> c
  2. Edit module a so that it does not depend on module b

Before this PR the module_graph will only remove module b, because of call revoke_modules after module isolated check.

Checklist

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

@github-actions github-actions bot added release: bug fix release: bug related release(mr only) team The issue/pr is created by the member of Rspack. labels Sep 2, 2024
@netlify
Copy link
Copy Markdown

netlify bot commented Sep 2, 2024

Deploy Preview for rspack ready!

Name Link
🔨 Latest commit 1bb372d
🔍 Latest deploy log https://app.netlify.com/sites/rspack/deploys/66d7d298ed54fb0008cab619
😎 Deploy Preview https://deploy-preview-7761--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.

@JSerFeng
Copy link
Copy Markdown
Contributor

JSerFeng commented Sep 2, 2024

may fix #7419 can you release a canary ?

@jerrykingxyz
Copy link
Copy Markdown
Contributor Author

may fix #7419 can you release a canary ?

@JSerFeng 1.0.1-canary-d6c74be-20240902095124

@JSerFeng
Copy link
Copy Markdown
Contributor

JSerFeng commented Sep 3, 2024

Can we add a test, for example using a plugin hook to print all modules after rebuild ?

@jerrykingxyz
Copy link
Copy Markdown
Contributor Author

Can we add a test, for example using a plugin hook to print all modules after rebuild ?

Good Idea, i will add it

@jerrykingxyz jerrykingxyz merged commit 18f7fa4 into main Sep 4, 2024
@jerrykingxyz jerrykingxyz deleted the jerry/clean_isolated_module branch September 4, 2024 04:39
hardfist pushed a commit that referenced this pull request Sep 4, 2024
* fix(make): isolated module clean incomplete

* test: add make clean_isolated_module test case
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

Development

Successfully merging this pull request may close these issues.

2 participants