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

Commit

Permalink
Update changelog and minor dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
lukastaegert committed Jun 22, 2019
1 parent d49e257 commit 21409a9
Show file tree
Hide file tree
Showing 4 changed files with 95 additions and 55 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# rollup-plugin-node-resolve changelog

## 5.0.4 (2019-06-22)

* Treat sideEffects array as inclusion list ([#227](https://github.com/rollup/rollup-plugin-node-resolve/pull/227) by @mikeharder)

## 5.0.3 (2019-06-16)

* Make empty.js a virtual module ([#224](https://github.com/rollup/rollup-plugin-node-resolve/pull/224) by @manucorporat)
Expand Down
134 changes: 85 additions & 49 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@
"@babel/preset-env": "^7.4.5",
"@babel/register": "^7.4.4",
"es5-ext": "^0.10.50",
"eslint": "^5.16.0",
"eslint": "^6.0.0",
"mocha": "^6.1.4",
"rollup": "^1.13.0",
"rollup": "^1.16.1",
"rollup-plugin-babel": "^4.3.2",
"rollup-plugin-commonjs": "^10.0.0",
"rollup-plugin-json": "^4.0.0",
"string-capitalize": "^1.0.1",
"typescript": "^3.5.1"
"typescript": "^3.5.2"
},
"main": "dist/rollup-plugin-node-resolve.cjs.js",
"module": "dist/rollup-plugin-node-resolve.es.js",
Expand All @@ -37,8 +37,8 @@
"@types/resolve": "0.0.8",
"builtin-modules": "^3.1.0",
"is-module": "^1.0.0",
"resolve": "^1.11.0",
"rollup-pluginutils": "^2.8.0"
"resolve": "^1.11.1",
"rollup-pluginutils": "^2.8.1"
},
"peerDependencies": {
"rollup": ">=1.11.0"
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ export default function nodeResolve ( options = {} ) {
})
.then(resolved => {
if ( resolved && packageBrowserField ) {
if ( packageBrowserField.hasOwnProperty(resolved) ) {
if ( Object.prototype.hasOwnProperty.call(packageBrowserField,resolved) ) {
if (!packageBrowserField[resolved]) {
browserMapCache.set(resolved, packageBrowserField);
return ES6_BROWSER_EMPTY;
Expand Down

0 comments on commit 21409a9

Please sign in to comment.