Thanks to visit codestin.com
Credit goes to github.com

Skip to content

getSize to return sum of all CSS sizes when no type specified#20518

Open
scameron wants to merge 1 commit intowebpack:mainfrom
scameron:css-size
Open

getSize to return sum of all CSS sizes when no type specified#20518
scameron wants to merge 1 commit intowebpack:mainfrom
scameron:css-size

Conversation

@scameron
Copy link
Contributor

Currently getSize on a CSS module will return 1 unless you pass in "css" explicitly as type. This change will return the sum total JS + CSS size when no type is specified.

Resolves #20495.

@changeset-bot
Copy link

changeset-bot bot commented Feb 23, 2026

⚠️ No Changeset found

Latest commit: 75034be

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link
Member

@alexander-akait alexander-akait left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/cc @xiaoxiaojx What do you think about it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CssModule.size() always returns 1 when type is not specified

2 participants