rollup-plugin-node-resolve
Advanced tools
Comparing version 4.2.0 to 4.2.1
# rollup-plugin-node-resolve changelog | ||
## 4.2.1 (2019-04-06) | ||
* Respect setting the deprecated fields "module", "main", and "jsnext" ([#204](https://github.com/rollup/rollup-plugin-node-resolve/pull/204) by @nick-woodward) | ||
## 4.2.0 (2019-04-06) | ||
@@ -4,0 +8,0 @@ |
@@ -61,3 +61,3 @@ 'use strict'; | ||
if (options[option] === false) { | ||
mainFields = mainFields.filter(function (mainField) { return mainField === field; }); | ||
mainFields = mainFields.filter(function (mainField) { return mainField !== field; }); | ||
} else if (options[option] === true && mainFields.indexOf(field) === -1) { | ||
@@ -64,0 +64,0 @@ mainFields.push(field); |
@@ -57,3 +57,3 @@ import { dirname, join, resolve, normalize, sep, extname } from 'path'; | ||
if (options[option] === false) { | ||
mainFields = mainFields.filter(function (mainField) { return mainField === field; }); | ||
mainFields = mainFields.filter(function (mainField) { return mainField !== field; }); | ||
} else if (options[option] === true && mainFields.indexOf(field) === -1) { | ||
@@ -60,0 +60,0 @@ mainFields.push(field); |
{ | ||
"name": "rollup-plugin-node-resolve", | ||
"description": "Bundle third-party dependencies in node_modules", | ||
"version": "4.2.0", | ||
"version": "4.2.1", | ||
"devDependencies": { | ||
@@ -6,0 +6,0 @@ "buble": "^0.19.7", |
@@ -54,3 +54,3 @@ import {dirname, extname, normalize, resolve, sep, join} from 'path'; | ||
if (options[option] === false) { | ||
mainFields = mainFields.filter(mainField => mainField === field); | ||
mainFields = mainFields.filter(mainField => mainField !== field); | ||
} else if (options[option] === true && mainFields.indexOf(field) === -1) { | ||
@@ -57,0 +57,0 @@ mainFields.push(field); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
38165