Skip to content

Commit

Permalink
[config] added circular-dependency analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
svenefftinge committed Mar 28, 2017
1 parent 21de1a0 commit 171be73
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
7 changes: 6 additions & 1 deletion config/webpack/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ const webpack = require('webpack');
const merge = require('webpack-merge');
const minimist = require('minimist');
const path = require('path');
const CircularDependencyPlugin = require('circular-dependency-plugin');
const paths = require('./paths');
const rules = require('./rules');
const electronConfiguration = require('./webpack.config.electron');
Expand Down Expand Up @@ -62,7 +63,11 @@ module.exports = function (dirname, config = {}) {
from: monacoHtmlLanguagePath,
to: 'vs/language/html'
}
])
]),
new CircularDependencyPlugin({
exclude: /(node_modules|examples)\/./,
failOnError: true
})
],

stats: {
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
"@types/ws": "0.0.38",
"chai": "^3.5.0",
"chai-as-promised": "^6.0.0",
"circular-dependency-plugin": "^2.0.0",
"copy-webpack-plugin": "^4.0.1",
"css-loader": "^0.26.2",
"file-loader": "^0.10.1",
Expand Down

0 comments on commit 171be73

Please sign in to comment.