accurat / accurapp

Create JS apps with flexible build configuration, tailored for the specific needs of Accurat
MIT License
21 stars 5 forks source link

Detect circular dependencies (and avoid them) #78

Open caesarsol opened 3 years ago

caesarsol commented 3 years ago

Is your feature request related to a problem? Please describe.

Sometimes circular dependencies are introduced in the project. Often without knowing, maybe for simple exported strings or trivial constants. This introduces these possible problems:

Describe the solution you'd like

Add circular-dependency-plugin to Webpack by default, to error out (or a BIG warning, but I prefer error) in case of a circular dependency.

Related project: madge

cc @ivanross (for problem 3 and for the discovery of madge) cc @pitou (for problem 2)