File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ export class ProjectInfo {
7979 */
8080interface ICircularDetectConfig {
8181 enable ?: boolean ;
82- exclude ?: RegExp ;
82+ exclude ?: string ;
8383}
8484
8585/**
Original file line number Diff line number Diff line change @@ -54,9 +54,10 @@ export const runWebpackDevServer = async (opts: IOptions<IExtraOptions>) => {
5454
5555 // If set open in project config, perform a circular dependency check
5656 if ( globalState . projectConfig . circularDetect ?. enable ) {
57+ const exclude = globalState . projectConfig . circularDetect ?. exclude ;
5758 webpackConfig . plugins . push (
5859 new CircularDependencyPlugin ( {
59- exclude : globalState . projectConfig . circularDetect ?. exclude ?? / n o d e _ m o d u l e s / ,
60+ exclude : exclude ? new RegExp ( exclude ) : / n o d e _ m o d u l e s / ,
6061 cwd : process . cwd ( ) ,
6162 } ) ,
6263 ) ;
You can’t perform that action at this time.
0 commit comments