rollup / rollup-plugin-node-resolve

This module has moved and is now available at @rollup/plugin-node-resolve / https://github.com/rollup/plugins/blob/master/packages/node-resolve
MIT License
469 stars 96 forks source link

Fix ordering of jsnext:main when using the jsnext option #209

Closed lukastaegert closed 5 years ago

lukastaegert commented 5 years ago

After introducing the mainfields option, the algorithm that adds jsnext:main to the internal mainfields when using jsnext: true sorted this option AFTER the main option. This PR fixes that and ensures the order

  1. module
  2. jsnext:main
  3. main

when using the deprecated options.

Resolves #208