Optimize Your Front End Applications by Migrating From Moment to Dayjs

Written by pankajpatel | Published 2019/11/18
Tech Story Tags: javascript | frontend | front-end-development | optimization | performance | web-performance | software-development | latest-tech-stories | web-monetization

TLDR HolidayPirates GmbH used moment.js to transform and manipulate dates in its frontend app. The company decided to use a new version of the library called dayjs. The dayjs provides a plugin called 'Advanced Format' which extends the capabilities of dayjs to extend the capabilities. Dayjs is very much immutable & tree shakable and its instance does not mutate the behavior of other instances. We had to de the following every time we used the dayjs: Initialization with a format was not possible: Locale assignment has to be done every time you import a module.via the TL;DR App

no story

Published by HackerNoon on 2019/11/18