aackerman / circular-dependency-plugin

Detect circular dependencies in modules compiled with Webpack
https://www.npmjs.com/package/circular-dependency-plugin
ISC License
914 stars 46 forks source link

Output the module path hierarchy of circular dependencies #5

Closed berickson1 closed 8 years ago

berickson1 commented 8 years ago

This slightly changes the output of the plugin to include the path of the modules impacted For example a->b->c->d->b will output Circular dependency detected b->c->d->b instead of just marking that there was a circular dependency in b

This also fixes a few odd cases in my project where modules are double-reported as having circular dependencies.

All of the test cases included are still covered, but had to be modified slightly to accommodate for the new output format

Also added LICENSE file based on license listed in package.json

aackerman commented 8 years ago

LGTM. Thanks for the contribution!