Skip to content

Commit

Permalink
fix: don't crash when module doesn't map to an input (#76)
Browse files Browse the repository at this point in the history
Co-authored-by: Jocelyn Badgley <jbadgley@clarocity.com>
  • Loading branch information
Twipped and Jocelyn Badgley committed Feb 26, 2021
1 parent da04e68 commit 881eada
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ module.exports = (options) => {
return;
}

const base = bases[idx];
const base = bases[idx] || "";

let total = 0;
const data = {};
Expand Down Expand Up @@ -121,7 +121,7 @@ module.exports = (options) => {
});

report({
input : input[idx],
input : input[idx] || bundle.fileName,
data,
totals,
total,
Expand Down

0 comments on commit 881eada

Please sign in to comment.