What is the difference between `main` and `module` vs `exports` in package.json?
Generally speaking, the “exports” field superseded the “module” field. “module” itself has never been an official standard but it became so widespread that at some point it was a de facto standard. Note that the “module” field is still being used by TypeScript if tsconfig’s moduleResolution is set to node; see microsoft/TypeScript#50794 for more info. … Read more