Skip to content

feat(multi-entry): ensure deterministic order #1879

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

GauBen
Copy link

@GauBen GauBen commented Jun 24, 2025

Rollup Plugin Name: multi-entry

This PR contains:

  • bugfix
  • feature
  • refactor
  • documentation
  • other

Are tests included?

  • yes (bugfixes and features will not be merged without tests)
  • no

Breaking Changes?

  • yes (breaking changes will not be merged unless absolutely necessary)
  • no

List any relevant issue numbers:

Description

Not sure if this is a fix or a feature (it's both), but files are not deterministically sorted on all platforms (when caps are involved for instance).

This PR sorts the files with JS .sort(), which is deterministic. We cannot use .toSorted() as the plugin should work with Node 14+ (available in Node 20+).

This is not technically a breaking change, because the order is currently undefined, but I get why this might be refused for a minor release.

This can also be added as an option, tell me if it is more sensible

@GauBen GauBen requested a review from shellscape as a code owner June 24, 2025 14:24
@GauBen GauBen changed the title feat: ensure multi-entry is deterministic feat(multi-entry): ensure deterministic order Jun 24, 2025
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.

1 participant