-
Notifications
You must be signed in to change notification settings - Fork 18
Get rid of moment #35
Comments
Good point, I will check Luxon to see how hard is to get an Adapter provider ;) |
@matheo that should be fairly easy. I've created my own luxon adapter. Its not fully tested or anything, but works fine for us. I'll probably roll it out to npm & git (so others can fix potential issues) and let you know. |
@Enngage please, just upload it to a repo of yours and I will check it ;) |
Day.Js is a nice alternative to me ⏰ Day.js 2KB immutable date library alternative to Moment.js with the same modern API |
Trying this library out. I too am looking to avoid moment, but I can suffice it for now. I did notice however that the native variant provided is broken. There's a null pointer when retrieving date.getFullYear(). This happens because the library does a |
@mtraynham do you mean that the |
Hi @matheo , no the I'll walk you through it.
The moment adapter seems to work without issue because it Honestly, I would have preferred using the |
@mtraynham all right, I just published 1.0.1 avoiding that undefined. BTW, In the other hand, which Angular version are you using? |
@matheo Angular 8.2.7
I'll have to try that out after the fix. I believe it was a problem because even though I'm not actually using moment, the Angular build was pulling in import * as momentNs from 'moment-timezone'; I'll have to investigate why Angular/Webpack didn't instead pull in the |
Hi guys! |
I have to stop using this library because of the fact it depends on Moment.js. Moment.js is a good library, but its incredibly bulky and easily adds 1MB to angular bundle size which is just unacceptable. Team behind moment is currently working on Luxon which is much better alternative.
The text was updated successfully, but these errors were encountered: