Skip to content

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.

@linux-foundation-easycla
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)

// 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