File tree 1 file changed +14
-7
lines changed
1 file changed +14
-7
lines changed Original file line number Diff line number Diff line change 1
1
import { codecovWebpackPlugin } from '@codecov/webpack-plugin' ;
2
+ import DuplicatePackageCheckerPlugin from '@madccc/duplicate-package-checker-webpack-plugin' ;
3
+ import CircularDependencyPlugin from 'circular-dependency-plugin' ;
2
4
import { defineConfig } from 'father' ;
3
5
4
6
class CodecovWebpackPlugin {
5
7
private options ;
6
8
constructor ( options = { } ) {
7
- this . options = {
8
- enableBundleAnalysis : true ,
9
- bundleName : 'webpack-bundle' ,
10
- gitService : 'github' ,
11
- disable : false ,
12
- ...options ,
13
- } ;
9
+ this . options = options ;
14
10
}
15
11
apply ( compiler : any ) {
16
12
return codecovWebpackPlugin ( this . options ) . apply ( compiler ) ;
@@ -55,6 +51,17 @@ export default defineConfig({
55
51
gitService : 'github' ,
56
52
} ,
57
53
] ) ;
54
+ memo . plugin ( 'circular-dependency-checker' ) . use ( CircularDependencyPlugin , [
55
+ {
56
+ failOnError : true ,
57
+ } ,
58
+ ] ) ;
59
+ memo . plugin ( 'duplicate-package-checker' ) . use ( DuplicatePackageCheckerPlugin , [
60
+ {
61
+ verbose : true ,
62
+ emitError : true ,
63
+ } ,
64
+ ] ) ;
58
65
}
59
66
return memo ;
60
67
} ,
You can’t perform that action at this time.
0 commit comments