Check for dependency cycles using Tarjan's strongly connected components algorithm
npm install webpack-dependency-cycle-plugin
Check for cycles in your modules via Tarjan's Algorithm
``shell`
npm install --save-dev webpack-dependency-cycle-plugin
`typescript
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
})]
};
``