## Circular Dependency Plugin

Detect modules with circular dependencies when bundling with webpack.

### Usage

```js
// webpack.config.js
module.exports = {
  entry: "./src/index",
  plugins: [
    new CircularDependencyPlugin({
      // exclude detection of files based on a RegExp
      exclude: /a\.js/,
      // add errors to webpack instead of warnings
      failOnError: true
    })
  ]
}
```

## Circular Dependency Plugin

Detect modules with circular dependencies when bundling with webpack.

### Usage

```js
// webpack.config.js
module.exports = {
  entry: "./src/index",
  plugins: [
    new CircularDependencyPlugin({
      // exclude detection of files based on a RegExp
      exclude: /a\.js|node_modules/,
      // add errors to webpack instead of warnings
      failOnError: true
    })
  ]
}
```

Update doc to exclude all node_modules files
Update doc to exclude all node_modules files

Not necessary, but it could merit a default include somewhere so that error's aren't thrown in files that you don't own. Just a thought.