mirror of
https://github.com/developit/microbundle.git
synced 2026-01-25 14:06:50 +00:00
Merge pull request #82 from Andarist/patch-1
Fixed crash when bundling packages without dependencies
This commit is contained in:
commit
81c8e4c75a
@ -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) => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user