Skip to content

Commit

Permalink
fix: treat compilation.errors as a set (#705)
Browse files Browse the repository at this point in the history
  • Loading branch information
guybedford committed Apr 30, 2021
1 parent 571eced commit 7310d25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Expand Up @@ -358,7 +358,7 @@ function ncc (
compiler.close(err => {
if (err) return reject(err);
if (stats.hasErrors()) {
const errLog = stats.compilation.errors.map(err => err.message).join('\n');
const errLog = [...stats.compilation.errors].map(err => err.message).join('\n');
return reject(new Error(errLog));
}
resolve(stats);
Expand Down

0 comments on commit 7310d25

Please sign in to comment.