Created by: iiska
FileSizeReporter would fail if create-react-app project is ejected and webpack configuration is modified to multi build setup. This could be reproduced with webpack configuration which returns array of configuration objects.
Real world use case for that kind of setup could be implementing localization with separate builds for each language.
In those situations webpackStats
parameter would contain stats array
for each build. This fix will try to access stats and then fallback to using plaing webpackStats object.
If stats array is found it is mapped through and flattened. Assets are handled like before.