Skip to content

[Feature]: Support maxGeneartion for cache #9405

@h-a-n-a

Description

@h-a-n-a

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.

Metadata

Metadata

Assignees

Labels

teamThe issue/pr is created by the member of Rspack.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions