Skip to content

Commit

Permalink
Merge pull request #82 from Andarist/patch-1
Browse files Browse the repository at this point in the history
Fixed crash when bundling packages without dependencies
  • Loading branch information
developit committed Feb 21, 2018
2 parents b8ba766 + 4c7182b commit 81c8e4c
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 81c8e4c

Please sign in to comment.