I have been using moment.js
in a page in my Sapper app. When I build the project, I noticed that moment.js
takes up quite some space, so I tried to switch over to dayjs instead.
However, whenever I try to open the page in which I am using day.js
, the page simply fails and says that it is taking a long time to respond. Any ideas why this is happening?
Steps to reproduce
- get the Sapper project
- npm install dayjs
- use it in any page, and observe the behavior
Info
- Day.js Version: 1.8.34
- OS: Linux Mint 19.3 (Cinnamon 4.4.8)
- Browser: Chrome 80.0