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:
"default" - the generic fallback that always matches. Can be a CommonJS or ES module file. This condition should always come last. (source)
The
default
field should be sorted to appear last in the a conditional exports object. Additionally, thetypes
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