Skip to content

Commit

Permalink
Use isArray check for externals (#437)
Browse files Browse the repository at this point in the history
  • Loading branch information
guybedford authored and styfle committed Jun 21, 2019
1 parent 6b1d5c3 commit 27e50d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ module.exports = (

const externalMap = new Map();

if (externals instanceof Array)
if (Array.isArray(externals))
externals.forEach(external => externalMap.set(external, external));
else if (typeof externals === 'object')
Object.keys(externals).forEach(external => externalMap.set(external, externals[external]));
Expand Down

0 comments on commit 27e50d9

Please sign in to comment.