Created by: marcofugaro
Hey, I've been using the updated react-dev-utils and found a bug in formatWebpackMessages that happens with newer webpack versions.
Basically webpack (or the thread-loader) in the stats.toJson().warnings
now outputs also this line, containing a Module Warning or Module Error (?):
Module Warning (from ./node_modules/thread-loader/dist/cjs.js):
so the lines
array now becomes this (see second line):
instead of the old one
This fucks with the thread-loader message remover and actually removes the body of the warning.
This PR checks if that line is present and removes it since it's not relevant to the user.