@rollup/plugin-node-resolve 7.1.0 → 7.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @rollup/plugin-node-resolve ChangeLog
2
2
 
3
+ ## v7.1.1
4
+
5
+ _2020-02-03_
6
+
7
+ ### Bugfixes
8
+
9
+ - fix: main fields regression (#196)
10
+
3
11
  ## v7.1.0
4
12
 
5
13
  _2020-02-01_
package/dist/index.es.js CHANGED
@@ -146,7 +146,7 @@ function getMainFields(options) {
146
146
  if (options.mainFields) {
147
147
  mainFields = options.mainFields;
148
148
  } else {
149
- mainFields = ['main', 'module'];
149
+ mainFields = ['module', 'main'];
150
150
  }
151
151
 
152
152
  if (options.browser && mainFields.indexOf('browser') === -1) {
package/dist/index.js CHANGED
@@ -151,7 +151,7 @@ function getMainFields(options) {
151
151
  if (options.mainFields) {
152
152
  mainFields = options.mainFields;
153
153
  } else {
154
- mainFields = ['main', 'module'];
154
+ mainFields = ['module', 'main'];
155
155
  }
156
156
 
157
157
  if (options.browser && mainFields.indexOf('browser') === -1) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rollup/plugin-node-resolve",
3
- "version": "7.1.0",
3
+ "version": "7.1.1",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },