webpack-visualizer
webpack-visualizer copied to clipboard
Handle dedupe'd modules
Currently, the visualizer will put a black outline on any modules which appear to be duplicated.
If these modules are being successfully de-duped, Webpack leaves those modules where they are but aliases them all to a new copy of the module, which would appear at root level in the visualizer.
So - it's kind of tough to decide how to handle this. The most accurate thing would probably be to hide the original duplicated modules and only show the new copy. The downside is that you don't see all the places where the module is actually being used in the hierarchy.
Let me know if you have any opinions on how to handle this!
is this issue saying de-duped modules are still being shown despite not being in the final output?
@matthewmueller Hey, sorry, I added some details above.
Just an update on this - it turns out that Webpack doesn't provide any details about de-duped modules in the json output. So I unfortunately won't be able to do anything about this for the website.
However, I'm working on creating a Webpack plugin that outputs the webpage - and that, I believe, should have access to all the module details. So hopefully this will still be a possibility.
Doesn't webpack 2 prune all deduped modules by default now?
@alampros source? Either way, don't know if that will affect this issue.