Skip to content
This repository was archived by the owner on Aug 4, 2021. It is now read-only.

Commit 21409a9

Browse files
committedJun 22, 2019
Update changelog and minor dependencies
1 parent d49e257 commit 21409a9

File tree

4 files changed

+95
-55
lines changed

4 files changed

+95
-55
lines changed
 

‎CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# rollup-plugin-node-resolve changelog
22

3+
## 5.0.4 (2019-06-22)
4+
5+
* Treat sideEffects array as inclusion list ([#227](https://github.com/rollup/rollup-plugin-node-resolve/pull/227) by @mikeharder)
6+
37
## 5.0.3 (2019-06-16)
48

59
* Make empty.js a virtual module ([#224](https://github.com/rollup/rollup-plugin-node-resolve/pull/224) by @manucorporat)

‎package-lock.json

+85-49
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@
77
"@babel/preset-env": "^7.4.5",
88
"@babel/register": "^7.4.4",
99
"es5-ext": "^0.10.50",
10-
"eslint": "^5.16.0",
10+
"eslint": "^6.0.0",
1111
"mocha": "^6.1.4",
12-
"rollup": "^1.13.0",
12+
"rollup": "^1.16.1",
1313
"rollup-plugin-babel": "^4.3.2",
1414
"rollup-plugin-commonjs": "^10.0.0",
1515
"rollup-plugin-json": "^4.0.0",
1616
"string-capitalize": "^1.0.1",
17-
"typescript": "^3.5.1"
17+
"typescript": "^3.5.2"
1818
},
1919
"main": "dist/rollup-plugin-node-resolve.cjs.js",
2020
"module": "dist/rollup-plugin-node-resolve.es.js",
@@ -37,8 +37,8 @@
3737
"@types/resolve": "0.0.8",
3838
"builtin-modules": "^3.1.0",
3939
"is-module": "^1.0.0",
40-
"resolve": "^1.11.0",
41-
"rollup-pluginutils": "^2.8.0"
40+
"resolve": "^1.11.1",
41+
"rollup-pluginutils": "^2.8.1"
4242
},
4343
"peerDependencies": {
4444
"rollup": ">=1.11.0"

‎src/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ export default function nodeResolve ( options = {} ) {
263263
})
264264
.then(resolved => {
265265
if ( resolved && packageBrowserField ) {
266-
if ( packageBrowserField.hasOwnProperty(resolved) ) {
266+
if ( Object.prototype.hasOwnProperty.call(packageBrowserField,resolved) ) {
267267
if (!packageBrowserField[resolved]) {
268268
browserMapCache.set(resolved, packageBrowserField);
269269
return ES6_BROWSER_EMPTY;

0 commit comments

Comments
 (0)
This repository has been archived.