stencil-community / stencil-postcss

Autoprefixer plugin for Stencil
https://www.npmjs.com/package/@stencil-community/postcss
Other
30 stars 24 forks source link

fix: proper reason in diagnostics if postcss plugin failes #36

Closed ghingis closed 2 years ago

ghingis commented 3 years ago

If a postcss plugin fails sometimes we end up with error that has no reason property only message It would be nice to use that instead or fall back to the stringification of the error object. A hard to read error is still better than an undefined. This PR aims to do just that

Before: image

After: image