I have a scenario where I am trying to build dojo and my app into one single file by adding everything to one single layer. However, in dojo's gfx/render the renderer is determined dynamically and a require statement is used to get the module for that renderer. Thus after build I donot have these render modules in my final js file.
When I load the final js file it tries to find the renders in their actual location.
If I add those files as they are in a new Layer, then it leads to new issues. The loaded renderer module defines other dojo modules in its dependency list and most of them already have been included in the previous final js file (Layer 1).
Thus this leads to large layers.
What solution can be used to tackle this problem?