mirror of
https://github.com/nasa/openmct.git
synced 2025-01-31 00:23:54 +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": {
|
"paths": {
|
||||||
"legacyRegistry": "./src/legacyRegistry",
|
"legacyRegistry": "./src/legacyRegistry",
|
||||||
"angular": "./platform/framework/lib/angular.min",
|
"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": {
|
"shim": {
|
||||||
"angular": {
|
"angular": {
|
||||||
@ -33,6 +36,9 @@ requirejs.config({
|
|||||||
},
|
},
|
||||||
"angular-route": {
|
"angular-route": {
|
||||||
"deps": [ "angular" ]
|
"deps": [ "angular" ]
|
||||||
|
},
|
||||||
|
"moment-duration-format": {
|
||||||
|
"deps": [ 'moment' ]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user