You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
module.exports = function(context, name) {
|
|
if (context.stats && context.stats.compilation && context.stats.compilation.errors) {
|
|
return context.stats.compilation.errors.filter(error => {
|
|
return error.name === name;
|
|
}).length > 0;
|
|
} else {
|
|
return false;
|
|
}
|
|
}
|