I have a problem with my build in Dojo. It does build, and most of all widgets seems to be included in dojo.js after the build. But when I test the built project it still loads about 100 files on demand. I think the common denominator for the files that doesn't get build, is that they don't use return declare( But instead returns functions or objects.
I attach a print-screen of some of the modules that doesn't get bundled in the build. Dump from Firebug NET-console
The question is, is there some way of bundling these files into dojo.js, and avoid the 100+ extra requests?
Dojo builds are a pain in my neck. There are several different ways to configure them.
Generally, if you're trying to build everything (including Dojo) into one Javascript source file make sure your layer has "customBase" and "boot" set to "true".
build.profile.js
That should catch all of the Dojo source files. Otherwise, if something somehow slips that's what the "include" option is for. It's an explicit list of modules that get built into the layer.
build.profile.js