diff --git a/index.js b/index.js index 9c8dc46..878d7c8 100644 --- a/index.js +++ b/index.js @@ -71,7 +71,7 @@ module.exports = (options) => { return; } - const base = bases[idx]; + const base = bases[idx] || ""; let total = 0; const data = {}; @@ -121,7 +121,7 @@ module.exports = (options) => { }); report({ - input : input[idx], + input : input[idx] || bundle.fileName, data, totals, total,