infernojs / create-inferno-app

Create Inferno apps with no build configuration.
MIT License
351 stars 34 forks source link

inferno-dev-utils/formatWebpackMessages support for webpack 5.x #87

Closed farooqkz closed 1 year ago

farooqkz commented 1 year ago

The package expects each error or warning message to be a String:

https://github.com/infernojs/create-inferno-app/blob/master/packages/inferno-dev-utils/formatWebpackMessages.js#L20

While in webpack 5.x, it is an Object with a message entry:

https://raw.githubusercontent.com/webpack/analyse/master/app/pages/upload/example2.json

I think it must be updated to detect if the elements of stats.errors or stats.warnings are String or Object so that this part would be compatible with webpack 5.x