webpack-bundle-diff icon indicating copy to clipboard operation
webpack-bundle-diff copied to clipboard

[Feature request] Support for webpack 3

Open juicetin opened this issue 6 years ago • 2 comments

The use of namedChunkGroups is specific to webpack 4, as far as I can tell. Would it be possible to support webpack 3 as well, which uses assetsByChunkName and uses a different data shape?

juicetin avatar Jul 09 '19 07:07 juicetin

@juicetin

I'm not planning to support older versions of Webpack -- in fact, I've contributed some changes to Webpack 5 that will allow for much better dependency graph analysis, and will probably bump the minimum supported version to that once it has been released for a while and people have had a chance to upgrade.

That said, if you're interested in making the changes and they aren't too invasive I'd consider taking a pull request for it. Big picture, though, I'd recommend upgrading your project to Webpack 4 if you can. There's value in staying with the current version of major tools, for exactly reasons like this.

smikula avatar Jul 09 '19 18:07 smikula

Yep that's fair - I'll test out what changes may be needed for webpack 3, and see if it's trivial enough to be worth opening a PR.

I totally agree on staying up to date - the project I'm looking at is large enough that there's a lot of complexity around upgrading and not something that I can decide alone/be done in a day or two.

I'll come back and close this ticket in the near future if I decide not to open a PR with the changes.

Thanks!

juicetin avatar Jul 09 '19 22:07 juicetin