File tree Expand file tree Collapse file tree 3 files changed +14
-0
lines changed Expand file tree Collapse file tree 3 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ const config = require('../config');
19
19
const webpack = require ( 'webpack' ) ;
20
20
const merge = require ( 'merge2' ) ;
21
21
const WebpackDevServer = require ( 'webpack-dev-server' ) ;
22
+ const CircularDependencyPlugin = require ( 'circular-dependency-plugin' ) ;
22
23
23
24
// Ensure that the test tasks get set up
24
25
const testFxns = require ( './test' ) ;
@@ -64,6 +65,14 @@ function runDevServer(callback) {
64
65
resolve : {
65
66
extensions : [ ".tsx" , ".ts" , ".js" ]
66
67
} ,
68
+ plugins : [
69
+ new CircularDependencyPlugin ( {
70
+ // exclude detection of files based on a RegExp
71
+ exclude : / n o d e _ m o d u l e s / ,
72
+ // add errors to webpack instead of warnings
73
+ failOnError : true
74
+ } )
75
+ ] ,
67
76
devtool : 'inline-source-map' ,
68
77
} ;
69
78
// Start a webpack-dev-server
Original file line number Diff line number Diff line change 39
39
"babel-preset-env" : " ^1.2.1" ,
40
40
"chai" : " ^3.5.0" ,
41
41
"child-process-promise" : " ^2.2.1" ,
42
+ "circular-dependency-plugin" : " ^3.0.0" ,
42
43
"cz-customizable" : " ^5.0.0" ,
43
44
"filesize" : " ^3.5.6" ,
44
45
"git-rev-sync" : " ^1.9.0" ,
Original file line number Diff line number Diff line change @@ -1306,6 +1306,10 @@ cipher-base@^1.0.0, cipher-base@^1.0.1:
1306
1306
dependencies :
1307
1307
inherits "^2.0.1"
1308
1308
1309
+ circular-dependency-plugin@^3.0.0 :
1310
+ version "3.0.0"
1311
+ resolved "https://registry.yarnpkg.com/circular-dependency-plugin/-/circular-dependency-plugin-3.0.0.tgz#9b68692e35b0e3510998d0164b6ae5011bea5760"
1312
+
1309
1313
cli-cursor@^1.0.1 :
1310
1314
version "1.0.2"
1311
1315
resolved "https://registry.yarnpkg.com/cli-cursor/-/cli-cursor-1.0.2.tgz#64da3f7d56a54412e59794bd62dc35295e8f2987"
You can’t perform that action at this time.
0 commit comments