Skip to content

[Feature]: RFC: Cross-Chunk Duplicate Package Detection #639

@easy1090

Description

What problem does this feature solve?

RFC: Cross-Chunk Duplicate Package Detection in Webpack

Summary

Introduce a feature to the Rspack and webpack build analysis tool that detects and reports instances where the same package or the same version of a package is bundled more than once across different chunks.

Motivation

In complex applications, it’s common for the same package or even the same version of a package to be included in multiple chunks, leading to increased bundle size and inefficient resource usage. Identifying and resolving these redundancies can optimize the build output and improve overall application performance.

Benefits

  • Reduced Bundle Size: By identifying and consolidating duplicate packages, developers can significantly reduce the size of the bundles.
  • Improved Load Times: Optimized bundles lead to faster load times and a better user experience.
  • Maintainability: Provides developers with more insight into their dependency management, helping maintain a cleaner and more efficient codebase.

What does the proposed API look like?

Not need.

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions