mirror of
https://github.com/zhigang1992/create-react-app.git
synced 2026-04-23 12:48:00 +08:00
Fix displaying third party webpack plugins errors (#5137)
This commit is contained in:
committed by
Joe Haddad
parent
ce5a2e4e14
commit
be8f9da4cf
@@ -32,6 +32,11 @@ function formatMessage(message, isError) {
|
||||
return message.indexOf('Thread Loader (Worker') === -1;
|
||||
});
|
||||
|
||||
// Add empty line for errors from third-party webpack plugins
|
||||
if (lines.length < 2) {
|
||||
lines[1] = '';
|
||||
}
|
||||
|
||||
// Strip `ModuleWarning` head off message before parsing (because of ESLint)
|
||||
// https://github.com/webpack/webpack/blob/c77030573de96b8293c69dd396492f8e2d46561e/lib/ModuleWarning.js
|
||||
var moduleWarningPrefix = 'Module Warning: ';
|
||||
|
||||
Reference in New Issue
Block a user