Skip to content

chore: fixed incorrect typecast in DefaultStatsFactoryPlugin#19156

Merged
alexander-akait merged 1 commit into
webpack:mainfrom
Andarist:patch-1
Feb 4, 2025
Merged

chore: fixed incorrect typecast in DefaultStatsFactoryPlugin#19156
alexander-akait merged 1 commit into
webpack:mainfrom
Andarist:patch-1

Conversation

@Andarist

Copy link
Copy Markdown
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.

@linux-foundation-easycla

linux-foundation-easycla Bot commented Jan 22, 2025

Copy link
Copy Markdown

CLA Signed


The committers listed above are authorized under a signed CLA.

@webpack-bot

Copy link
Copy Markdown
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)

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

Copy link
Copy Markdown
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

Copy link
Copy Markdown
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