The inclusion of the moment lib requires a little extra steps in the Dojo build profile.
See this sample here.
jsapi-resources/build.profile.js at master · Esri/jsapi-resources · GitHub
packages: [
// 'app' is a sample path for your application
// set this accordingly
'app',
'dijit',
'dojo',
'dojox',
'dstore',
'dgrid',
'xstyle',
'put-selector',
'esri', {
name: 'moment',
location: 'moment',
main: 'moment',
trees: [
// don't bother with .hidden, tests, min, src, and templates
[".", ".", /(\/\.)|(~$)|(test|txt|src|min|templates)/]
]
}
],
When you bower install moment, it will build fine, but you have to tell Dojo where to find it and also what files to ignore, which is what that trees property does for the package.
Hope that helps.