Skip to content

Commit

Permalink
Fixed crash when bundling packages without dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Andarist committed Feb 10, 2018
1 parent 7a570c8 commit 4c7182b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Expand Up @@ -156,7 +156,7 @@ function createConfig(options, entry, format, writeMeta) {
}
else if (options.external==='all' || options.inline==='none') {
useNodeResolve = false;
external = external.concat(Object.keys(pkg.dependencies));
external = external.concat(Object.keys(pkg.dependencies || {}));
}

let globals = external.reduce( (globals, name) => {
Expand Down

0 comments on commit 4c7182b

Please sign in to comment.