Skip to content

Bloated @mui/icons-material in 7.3.2 #46858

@joshkel

Description

@joshkel

Steps to reproduce

Steps:

  1. Use Yarn Modern configured with its node-modules linker to upgrade from @mui/icons-material 7.3.1 to 7.3.2.
  2. Note that Yarn reports that package sizes have increased by 11.78 MiB.
  3. Note that node_modules/@mui/icons-material has gone from 173M to 260M.

(These steps can be done with other package mangers, too; Yarn's 11.78 MiB report is simply an additional confirmation that node_modules has gotten a lot bigger.)

Current behavior

node_modules/@mui/icons-material contains a lib directory that contains a copy of all the .js files (but not the .d.ts files) in node_modules/@mui/icons-material and node_modules/@mui/icons-material/esm.

The index.js file in node_modules/@mui/icons-material and its esm subdirectory contain duplicated headers:

/**
 * @mui/icons-material v7.3.2
 *
 * @license MIT
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */
/**
 * @mui/icons-material v7.3.1
 *
 * @license MIT
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */

Expected behavior

No redundant files, duplicated headers, or drastic increase in package size

Context

No response

Your environment

npx @mui/envinfo
  System:
    OS: macOS 15.6.1
  Binaries:
    Node: 22.18.0 - ~/.nvm/versions/node/v22.18.0/bin/node
    npm: 10.9.3 - ~/.nvm/versions/node/v22.18.0/bin/npm
    pnpm: Not Found
  Browsers:
    Chrome: 139.0.7258.155
    Edge: 139.0.3405.125
    Safari: 18.6

Search keywords: icons size

Metadata

Metadata

Assignees

Labels

scope: code-infraInvolves the code-infra product (https://www.notion.so/mui-org/5562c14178aa42af97bc1fa5114000cd).scope: iconsChanges related to the icons.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions