Dealing with the amalgamation of multiple JavaScript files alongside their source maps has been a challenging task for me.
The issue at hand involves my usage of Google Closure Compiler to scramble two javascript files, A and B, along with the generation of corresponding source maps A.map and B.map. Due to the application of distinct compilation options to each file, merging A and B into a single file does not seem to be a viable solution. Hence, I now aim to unify A and B into AB, as well as merge A.map and B.map into AB.map.
Is there a recommended approach to accomplish this? Are there any specialized tools available for such a task?