From 786f9febe4441a9135e138cbf7a3d84f194ab0b5 Mon Sep 17 00:00:00 2001 From: Victor Woeltjen Date: Thu, 7 Jan 2016 15:07:25 -0800 Subject: [PATCH] [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.) --- main.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/main.js b/main.js index 7c8cfdcb85..64548ece3e 100644 --- a/main.js +++ b/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' ] } } });