Skip to content

[Feature]: Implement HashedModuleIdsPlugin #13409

@aancuta

Description

@aancuta

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    pending triageThe issue/PR is currently untouched.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions