Examples for DuplicatesPlugin blog post.
We provide the following scenarios for bundles:
new-webpacknew-npm-flattenednew-npm-flattened-identical: Flattened, but different packages have identical files that webpack may be able to collapsenew-npm-unflattened: Same versions of a lib cannot be flattenedold-npm
old-webpacknew-npm-flattenednew-npm-flattened-identicalnew-npm-unflattenedold-npm
$ yarn
$ cd scenarios/old-webpack && yarn && cd ../..
$ cd scenarios/new-webpack && yarn && cd ../..$ yarn build$ yarn lint