mirror of
https://github.com/nasa/openmct.git
synced 2025-01-18 10:46:42 +00:00
[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:
parent
29acbfdb9c
commit
786f9febe4
8
main.js
8
main.js
@ -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' ]
|
||||
}
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user