Webpack 3 Dedupe Issue Demonstration

webpack/webpack#5593

In Webpack 1, modules importing the same version of a dependencies would be deduped via a DedupePlugin. In webpack 3, the DedupePlugin was removed. As you can see in this example, the webpack 1 output here doesn't include a third instance of lodash, but the webpack 3 output does.

The dependency structure is:

- lodash@4
  - dedupe-example-dependency-a
    -lodash@3
  - dedupe-example-dependency-b
    -lodash@3

Webpack 3

screen shot 2017-12-14 at 8 56 55 pm

Webpack 1 with DedupePlugin

screen shot 2017-12-14 at 8 56 59 pm