Add circular-dependency-plugin
to detect any circular deps issues (#26600)
This commit is contained in:
parent
b970ed6098
commit
bb2db2aec0
3 changed files with 11 additions and 0 deletions
|
@ -2,6 +2,7 @@
|
|||
|
||||
const { basename, dirname, join, relative, resolve } = require('path');
|
||||
|
||||
const CircularDependencyPlugin = require('circular-dependency-plugin');
|
||||
const { sync } = require('glob');
|
||||
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
|
||||
const extname = require('path-complete-extname');
|
||||
|
@ -84,6 +85,9 @@ module.exports = {
|
|||
writeToDisk: true,
|
||||
publicPath: true,
|
||||
}),
|
||||
new CircularDependencyPlugin({
|
||||
failOnError: true,
|
||||
})
|
||||
],
|
||||
|
||||
resolve: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue