aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/helpers/dates.ts
diff options
context:
space:
mode:
authorStas Vilchik <stas.vilchik@sonarsource.com>2018-05-29 17:00:54 +0200
committerSonarTech <sonartech@sonarsource.com>2018-05-29 20:20:47 +0200
commit95220229b1d52f0acd4f1c0d4358e9fed610c3ee (patch)
tree37ce44f787c6a22aca324047efbe8bcb41b38689 /server/sonar-web/src/main/js/helpers/dates.ts
parent9c10956d8a65e1e3a851691d69cee367ac4e0869 (diff)
downloadsonarqube-95220229b1d52f0acd4f1c0d4358e9fed610c3ee.tar.gz
sonarqube-95220229b1d52f0acd4f1c0d4358e9fed610c3ee.zip
SONAR-10675 Decrease JavaScript boot-up time (#283)
Diffstat (limited to 'server/sonar-web/src/main/js/helpers/dates.ts')
-rw-r--r--server/sonar-web/src/main/js/helpers/dates.ts14
1 files changed, 6 insertions, 8 deletions
diff --git a/server/sonar-web/src/main/js/helpers/dates.ts b/server/sonar-web/src/main/js/helpers/dates.ts
index f6f9167435d..b86e3685446 100644
--- a/server/sonar-web/src/main/js/helpers/dates.ts
+++ b/server/sonar-web/src/main/js/helpers/dates.ts
@@ -17,14 +17,12 @@
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
-import {
- differenceInDays as _differenceInDays,
- differenceInSeconds as _differenceInSeconds,
- differenceInYears as _differenceInYears,
- isSameDay as _isSameDay,
- parse,
- startOfDay as _startOfDay
-} from 'date-fns';
+import * as _differenceInDays from 'date-fns/difference_in_days';
+import * as _differenceInSeconds from 'date-fns/difference_in_seconds';
+import * as _differenceInYears from 'date-fns/difference_in_years';
+import * as _isSameDay from 'date-fns/is_same_day';
+import * as _startOfDay from 'date-fns/start_of_day';
+import * as parse from 'date-fns/parse';
function pad(number: number) {
if (number < 10) {