I am following documentation 'Using Bower for Custom Builds of the ArcGIS API for JavaScript' to understand how to create custom build.
In the sample Esri provided, 4 dependencies are included in the include parameter as dependencies of esri/map in build.profile.js.
layers: {
'dojo/dojo': {
boot: true,
customBase: true,
include: [
// include the app, set accordingly for your application
'app/main',
// dependencies of esri/map that will be requested if not included
'dojox/gfx/path',
'dojox/gfx/svg',
'dojox/gfx/shape',
'esri/dijit/Attribution'
],
includeLocales: ['en-us']
}
},esri/map is a dependency of app/main.
So, I do not think dependencies of esri/map is necessary to be included in the parameter when app/main is included.
However, when I deleted dependencies of esri/map and created custom build, these 4 dependencies are dynamically loaded.
Does anyone know why the dependencies of esri/map is required to be included in the parameter if I want to create one single js file?