Closed simonsmith closed 8 years ago
Further investigation reveals it probably due to two separate postcss
plugin chains as creating one reporter
instance to share between them didn't make any difference. This is not a critical bug by any means, but I'll leave it open as it's a nice to fix.
Due to there being two instance of
reporter
(one in thetransform
callback, and the other in the main list of plugins) it causes issues withthrowError
.An example is if
throwError
is set to true (for both reporters) then ifcustom-media
throws an error but we choose just to care aboutpostcss-bem-linter
(viaplugins
config inreporter
) then the error gets swallowed.An example of needing this is in utils that have media queries that are missing. We want the custom media warnings to be ignored but the bem-lint and stylelint errors to be thrown. As these are handled by two different instance of
reporter
it doesn't throw an error at all. It works fine with warnings though, as I guess this is just a fancystdout
.