Apologies if this question has already been addressed, but I couldn't find any relevant information. Currently, I'm in the process of refactoring a large AngularJS application by creating components as AMD modules. The build process (grunt) utilizes the requirejs plugin to load and concatenate all the modules into a single JS file along with jQuery.
Recently, I came across CommonJS syntax which seems cleaner compared to AMD. I'm considering switching to CommonJS modules from AMD, especially since the build process would be similar, just replacing requireJS with browserify.
Are there any specific advantages of using AMD modules over CommonJS in my workflow? Can asynchronous module loading still be beneficial at runtime when bundling all modules into a single JS file?
Thank you for your insights.