This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// webpack.config.js | |
const CircularDependencyPlugin = require('circular-dependency-plugin') | |
module.exports = { | |
entry: "./src/index", | |
plugins: [ | |
new CircularDependencyPlugin({ | |
// exclude detection of files based on a RegExp | |
exclude: /a\.js|node_modules/, | |
// add errors to webpack instead of warnings |