Skip to content

chore: fixed incorrect typecast in DefaultStatsFactoryPlugin #19156

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 4, 2025

Conversation

Andarist
Copy link
Contributor

What kind of change does this PR introduce?

This is just a small internal correction.

Did you add tests for your changes?

No. They are not needed

Does this PR introduce a breaking change?

No.

What needs to be documented once your changes are merged?

Nothing.

Copy link

linux-foundation-easycla bot commented Jan 22, 2025

CLA Signed


The committers listed above are authorized under a signed CLA.

@webpack-bot
Copy link
Contributor

For maintainers only:

  • This needs to be documented (issue in webpack/webpack.js.org will be filed when merged)
  • This needs to be backported to webpack 4 (issue will be created when merged)

@@ -1852,7 +1852,7 @@ const spaceLimited = (
// So it should always end up being smaller
const headerSize = group.filteredChildren ? 2 : 1;
const limited = spaceLimited(
/** @type {Children<T>} */ (group.children),
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is an error with TS 5.4, TS 5.5 introduced a bug that accidentally allows this call. At some point, that bug will get fixed (microsoft/TypeScript#61013) so it would be good to fix this code before that happens :)

@alexander-akait alexander-akait merged commit 6ab67fa into webpack:main Feb 4, 2025
63 checks passed
@alexander-akait
Copy link
Member

Thanks

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

Successfully merging this pull request may close these issues.

3 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy