webpack-dependency-cycle-plugin
v0.0.2
Published
Check for dependency cycles using Tarjan's strongly connected components algorithm
Downloads
10
Maintainers
Readme
Webpack Dependency Cycle Plugin
Check for cycles in your modules via Tarjan's Algorithm
Installation
npm install --save-dev webpack-dependency-cycle-pluginUsage
import { DependencyCyclePlugin } from 'webpack-dependency-cycle-plugin';
const webpackConfig = {
entry: 'index.js',
output: {
path: __dirname + '/dist',
filename: 'index_bundle.js'
},
plugins: [new DependencyCyclePlugin({
includeNodeModules: false // defaults to false
})]
};