You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
constCircularDependencyPlugin=require('circular-dependency-plugin')module.exports=({ onGetWebpackConfig })=>{onGetWebpackConfig((config)=>{config.plugin('CircularDependencyPlugin').use(CircularDependencyPlugin,[{// exclude detection of files based on a RegExpexclude: /node_modules/,// include specific files based on a RegExp// include: /src/,// add errors to webpack instead of warningsfailOnError: false,// allow import cycles that include an asyncronous import,// e.g. via import(/* webpackMode: "weak" */ './file.js')// allowAsyncCycles: false,// set the current working directory for displaying module pathscwd: process.cwd(),}]);});}
问题
如下配置
路由使用
通过
circular-dependency-plugin
插件检测存在循环问题预期
解决循环依赖问题
The text was updated successfully, but these errors were encountered: