We have a ton of typescript files that use external modules and we're hitting circular dependencies. (I've looked at other questions like this but none appear to answer my specific question.) This is in typescript so we're constrained to the way it generates the javascript.
- First off, is there a tool that will read through all my files (the .ts or the .js) and flag the places where I have circular dependencies? I think we can eliminate most if we can identify them.
- We have several cases where the design we must model forces circular dependencies. Is there a way to handle this in requireJS (again as created by typescript)?
- Is the answer to have the typescript compiler create a single .js file from all the .ts files? And if so, is there any downside to this approach, both when debugging and in production?
thanks - dave