Skip to content

Commit a9c8b4d

Browse files
committed
Only include moment locales when needed
1 parent a34ca79 commit a9c8b4d

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

config/environment.js

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
/*jshint node:true*/
22
'use strict';
33

4-
module.exports = function (/* environment, appConfig */) {
4+
module.exports = function(environment, appSettings) {
5+
let moment = appSettings.moment || {};
6+
let { includeLocales = false } = moment;
7+
58
return {
69
moment: {
7-
includeLocales: true
10+
includeLocales
811
}
912
};
1013
};

0 commit comments

Comments
 (0)