Also this PR is much larger than I initially thought it would be because I realized that I couldn't just add up all of the sizes but instead have to pass all of the entries to webpack.
This is because if we added up all of the sizes it would not account for packages that have a shared runtime. Eg: lodash/map+lodash/filter actually has like 5kb shared.
This adds support for https://github.com/antonmedv/jsize/issues/17.
Also this PR is much larger than I initially thought it would be because I realized that I couldn't just add up all of the sizes but instead have to pass all of the entries to webpack.
This is because if we added up all of the sizes it would not account for packages that have a shared runtime. Eg:
lodash/map+lodash/filter
actually has like 5kb shared.@antonmedv would love your feedback if any.