79383294

Date: 2025-01-24 05:29:13
Score: 1
Natty:
Report link

Yes, backwards compatibility for tooling, such as eslint, is the main reason to include both "exports" & "main" rules.

If both rules are included, the "exports" rules takes precedence for tooling that supports it, according to the npm docs that OP linked to, so there's no reason not to include both if backwards compatibility can be maintained.

Reasons:
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Judah Meek