The work-around is to use require.js in commonjs style or to add hacks into your architecture. Not fun.
The work-around is to use require.js in commonjs style or to add hacks into your architecture. Not fun.
Hence, careful selection of projects to work on is key.
This whole thread reminds me of the PHP days before namespaces. If you have circular dependencies within your own codebase, you have an architecture problem. If they are introduced by third-party libraries, maybe the usage of the library should be questioned.
I have a Modal class which depends on some utilities in a Utility class, but the Utility class depends on the Modal class because there are some utilities that show Modals.
This is not a broken architecture and is handled just fine by other programming languages/dependency handlers.
What are the utilities contained in this module?