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

[Feature]: Support maxGeneartion for cache #9405

Open
h-a-n-a opened this issue Feb 20, 2025 · 0 comments
Open

[Feature]: Support maxGeneartion for cache #9405

h-a-n-a opened this issue Feb 20, 2025 · 0 comments
Assignees
Labels
team The issue/pr is created by the member of Rspack.

Comments

@h-a-n-a
Copy link
Contributor

h-a-n-a commented Feb 20, 2025

What problem does this feature solve?

Memory cache in codeGeneration bloats as compiler invokes rebuild.
This could cause a huge memory bloat in big projects:
Image
#8976 (comment)

Would be better to support maxGeneartion related feature to reduce cache that was not be frequently accessed. https://webpack.js.org/configuration/cache/#cachemaxgenerations

What does the proposed API of configuration look like?

Option-wise, it's the same as webpack.

@h-a-n-a h-a-n-a added pending triage The issue/PR is currently untouched. and removed pending triage The issue/PR is currently untouched. labels Feb 20, 2025
@github-actions github-actions bot added the team The issue/pr is created by the member of Rspack. label Feb 20, 2025
@h-a-n-a h-a-n-a self-assigned this Feb 25, 2025
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

No branches or pull requests

1 participant