- Rollup Plugin Name: @rollup/plugin-node-resolve
- Rollup Plugin Version: 7.1.3
Feature Use Case
Recently, conditional exports have been introduced into the Node module resolution algorithm. Modern packages may rely upon them more and more.
Feature Proposal
When the field type is set to module inside a package.json file, prefer exports.{import,require,node,default} instead of the current mainFields.