Skip to content

Commit b72623d

Browse files
committed
Safer config object
1 parent 8a3238d commit b72623d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@ module.exports = function (source, map) {
5959
return loadConfig(pack);
6060
}
6161
}).then(function (config) {
62-
var plugins = config.plugins;
62+
if ( !config ) config = { };
63+
var plugins = config.plugins || [];
6364

6465
var opts = assign({}, config.options, {
6566
from: file,

0 commit comments

Comments
 (0)