[API] Declare libs upfront

Declare external dependencies up-front in RequireJS
config; avoids problems due to changes in ordering
(since RequireJS config may be modified by bundle
contents.)
This commit is contained in:
Victor Woeltjen 2016-01-07 15:07:25 -08:00
parent 29acbfdb9c
commit 786f9febe4

View File

@ -25,7 +25,10 @@ requirejs.config({
"paths": {
"legacyRegistry": "./src/legacyRegistry",
"angular": "./platform/framework/lib/angular.min",
"angular-route": "./platform/framework/lib/angular-route.min"
"angular-route": "./platform/framework/lib/angular-route.min",
"moment": 'platform/telemetry/lib/moment.min',
"moment-duration-format": 'platform/features/clock/lib/moment-duration-format',
"uuid": 'platform/core/lib/uuid'
},
"shim": {
"angular": {
@ -33,6 +36,9 @@ requirejs.config({
},
"angular-route": {
"deps": [ "angular" ]
},
"moment-duration-format": {
"deps": [ 'moment' ]
}
}
});