-
-
Notifications
You must be signed in to change notification settings - Fork 775
Open
Labels
pending triageThe issue/PR is currently untouched.The issue/PR is currently untouched.
Description
What problem does this feature solve?
The default hashing algorithm in webpack/rspack relies on the preorder index from the module graph. This works wonders for small projects or projects that do not update often, but adding/removing modules often in a big repo / monorepo using the defaults hurts long-term caching by invalidating more than it needs to, since module IDs change.
As this is a supported webpack feature, this effort would help close the gap between webpack and rspack by complementing rspack's incredible performance with stronger backwards compatibility with webpack APIs without affecting performance.
Working PoC PR and existing webpack API linked below.
What does the proposed API of configuration look like?
https://webpack.js.org/plugins/hashed-module-ids-plugin/
#13197
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
pending triageThe issue/PR is currently untouched.The issue/PR is currently untouched.