-
Notifications
You must be signed in to change notification settings - Fork 87
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
Sort conditional exports objects #239
Labels
Comments
jonahsnider
changed the title
Sort
Sort conditional exports objects
Jan 10, 2022
exports.default
to appear last inexports
PRs welcome! I think also getting opinions from folks in #197 (@dandv, @Xunnamius) would be useful. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The
default
field should be sorted to appear last in the a conditional exports object.Additionally, the
types
field should be sorted to appear first when present.The Node.js documentation has some information on ordering rules:
Nested conditions should also be sorted.
Related to #197
The text was updated successfully, but these errors were encountered: